//
//  MapDemoController.m
//  iOS-Echarts
//
//  Created by Pluto-Y on 15/12/27.
//  Copyright © 2015年 pluto-y. All rights reserved.
//

#import "MapDemoController.h"
#import "PYMapSeries.h"

@interface MapDemoController () {
    NSArray *menuNames;
}

@end

@implementation MapDemoController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initAll];
}

#pragma mark - 初始化方法
- (void)initAll {
    self.title = @"地图";
    // 初始化菜单名
    menuNames = @[@"标准地图1",@"标准地图2",@"标准地图3-暂无",@"标准地图4",@"标准地图5",@"多地图", @"地图拓展1-暂无", @"地图拓展2-暂无", @"地图拓展3-暂无", @"地图拓展4-暂无", @"Echarts拓展1-暂无", @"Echarts拓展2-暂无", @"地图标线1", @"地图标注1", @"子区域模式-暂无", @"地图标线2", @"地图标线3", @"地图标线4-暂无", @"地图标线5-暂无", @"地图标注2-暂无", @"地图拓展1-暂无", @"地图拓展2-暂无", @"地图拓展3-暂无", @"搭配时间轴-暂无", @"地图拓展 + 搭配时间轴-暂无", @"地图", @"值域控件"];
    
    _yDemoMenusTb.delegate = self;
    _yDemoMenusTb.dataSource = self;
    
    //默认显示第一个地图
    [self showStandardMap1Demo];
    [_yEchartView loadEcharts];
}

#pragma mark - Demo方法
/**
 *  标准地图1
 */
- (void)showStandardMap1Demo {
    NSString *json = @"{\"title\":{\"text\":\"iphone销量\",\"subtext\":\"纯属虚构\",\"x\":\"center\"},\"tooltip\":{\"trigger\":\"item\"},\"legend\":{\"orient\":\"vertical\",\"x\":\"left\",\"data\":[\"iphone3\",\"iphone4\",\"iphone5\"]},\"dataRange\":{\"min\":0,\"max\":2500,\"x\":\"left\",\"y\":\"bottom\",\"text\":[\"高\",\"低\"],\"calculable\":true},\"toolbox\":{\"show\":true,\"orient\":\"vertical\",\"x\":\"right\",\"y\":\"center\",\"feature\":{\"mark\":{\"show\":true},\"dataView\":{\"show\":true,\"readOnly\":false},\"restore\":{\"show\":true},\"saveAsImage\":{\"show\":true}}},\"roamController\":{\"show\":false,\"x\":\"right\",\"mapTypeControl\":{\"china\":true}},\"series\":[{\"name\":\"iphone3\",\"type\":\"map\",\"mapType\":\"china\",\"roam\":false,\"itemStyle\":{\"normal\":{\"label\":{\"show\":true}},\"emphasis\":{\"label\":{\"show\":true}}},\"data\":[{\"name\":\"北京\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"天津\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"上海\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"重庆\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"河北\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"河南\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"云南\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"辽宁\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"黑龙江\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"湖南\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"安徽\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"山东\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"新疆\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"江苏\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"浙江\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"江西\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"湖北\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"广西\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"甘肃\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"山西\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"内蒙古\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"陕西\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"吉林\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"福建\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"贵州\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"广东\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"青海\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"西藏\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"四川\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"宁夏\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"海南\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"台湾\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"香港\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"澳门\",\"value\":\"Math.round(Math.random()*1000)\"}]},{\"name\":\"iphone4\",\"type\":\"map\",\"mapType\":\"china\",\"itemStyle\":{\"normal\":{\"label\":{\"show\":true}},\"emphasis\":{\"label\":{\"show\":true}}},\"data\":[{\"name\":\"北京\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"天津\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"上海\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"重庆\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"河北\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"安徽\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"新疆\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"浙江\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"江西\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"山西\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"内蒙古\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"吉林\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"福建\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"广东\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"西藏\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"四川\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"宁夏\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"香港\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"澳门\",\"value\":\"Math.round(Math.random()*1000)\"}]},{\"name\":\"iphone5\",\"type\":\"map\",\"mapType\":\"china\",\"itemStyle\":{\"normal\":{\"label\":{\"show\":true}},\"emphasis\":{\"label\":{\"show\":true}}},\"data\":[{\"name\":\"北京\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"天津\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"上海\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"广东\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"台湾\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"香港\",\"value\":\"Math.round(Math.random()*1000)\"},{\"name\":\"澳门\",\"value\":\"Math.round(Math.random()*1000)\"}]}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  标准地图2
 */
- (void)showStandardMap2Demo {
    NSString *json = @"{\"tooltip\":{\"trigger\":\"item\",\"formatter\":\"{b}\"},\"series\":[{\"name\":\"中国\",\"type\":\"map\",\"mapType\":\"china\",\"selectedMode\":\"multiple\",\"itemStyle\":{\"normal\":{\"label\":{\"show\":true}},\"emphasis\":{\"label\":{\"show\":true}}},\"data\":[{\"name\":\"广东\",\"selected\":true}]}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  标准地图3
 */
- (void)showStandardMap3Demo {
    NSString *json = @"{\"tooltip\":{\"trigger\":\"item\",\"formatter\":\"{b}\"},\"series\":[{\"name\":\"中国\",\"type\":\"map\",\"mapType\":\"china\",\"selectedMode\":\"multiple\",\"itemStyle\":{\"normal\":{\"label\":{\"show\":true}},\"emphasis\":{\"label\":{\"show\":true}}},\"data\":[{\"name\":\"广东\",\"selected\":true}]}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  标准地图4
 */
- (void)showStandardMap4Demo {
    NSString *json = @"{\"title\":{\"text\":\"World Population (2010)\",\"subtext\":\"from United Nations, Total population, both sexes combined, as of 1 July (thousands)\",\"sublink\":\"http://esa.un.org/wpp/Excel-Data/population.htm\",\"x\":\"center\",\"y\":\"top\"},\"tooltip\":{\"trigger\":\"item\",\"formatter\":\"(function (params) {var value = (params.value + \'\').split(\'.\');value = value[0].replace(/(d{1,3})(?=(?:d{3})+(?!d))/g, \'$1,\') + \'.\' + value[1]; return params.seriesName + \'<br/>\' + params.name + \' : \' + value;})\"},\"toolbox\":{\"show\":true,\"orient\":\"vertical\",\"x\":\"right\",\"y\":\"center\",\"feature\":{\"mark\":{\"show\":true},\"dataView\":{\"show\":true,\"readOnly\":false},\"restore\":{\"show\":true},\"saveAsImage\":{\"show\":true}}},\"dataRange\":{\"min\":0,\"max\":1000000,\"text\":[\"High\",\"Low\"],\"realtime\":false,\"calculable\":true,\"color\":[\"orangered\",\"yellow\",\"lightskyblue\"]},\"series\":[{\"name\":\"World Population (2010)\",\"type\":\"map\",\"mapType\":\"world\",\"roam\":true,\"mapLocation\":{\"y\":60},\"itemStyle\":{\"emphasis\":{\"label\":{\"show\":true}}},\"data\":[{\"name\":\"Afghanistan\",\"value\":28397.812},{\"name\":\"Angola\",\"value\":19549.124},{\"name\":\"Albania\",\"value\":3150.143},{\"name\":\"United Arab Emirates\",\"value\":8441.537},{\"name\":\"Argentina\",\"value\":40374.224},{\"name\":\"Armenia\",\"value\":2963.496},{\"name\":\"French Southern and Antarctic Lands\",\"value\":268.065},{\"name\":\"Australia\",\"value\":22404.488},{\"name\":\"Austria\",\"value\":8401.924},{\"name\":\"Azerbaijan\",\"value\":9094.718},{\"name\":\"Burundi\",\"value\":9232.753},{\"name\":\"Belgium\",\"value\":10941.288},{\"name\":\"Benin\",\"value\":9509.798},{\"name\":\"Burkina Faso\",\"value\":15540.284},{\"name\":\"Bangladesh\",\"value\":151125.475},{\"name\":\"Bulgaria\",\"value\":7389.175},{\"name\":\"The Bahamas\",\"value\":66402.316},{\"name\":\"Bosnia and Herzegovina\",\"value\":3845.929},{\"name\":\"Belarus\",\"value\":9491.07},{\"name\":\"Belize\",\"value\":308.595},{\"name\":\"Bermuda\",\"value\":64.951},{\"name\":\"Bolivia\",\"value\":716.939},{\"name\":\"Brazil\",\"value\":195210.154},{\"name\":\"Brunei\",\"value\":27.223},{\"name\":\"Bhutan\",\"value\":716.939},{\"name\":\"Botswana\",\"value\":1969.341},{\"name\":\"Central African Republic\",\"value\":4349.921},{\"name\":\"Canada\",\"value\":34126.24},{\"name\":\"Switzerland\",\"value\":7830.534},{\"name\":\"Chile\",\"value\":17150.76},{\"name\":\"China\",\"value\":1359821.465},{\"name\":\"Ivory Coast\",\"value\":60508.978},{\"name\":\"Cameroon\",\"value\":20624.343},{\"name\":\"Democratic Republic of the Congo\",\"value\":62191.161},{\"name\":\"Republic of the Congo\",\"value\":3573.024},{\"name\":\"Colombia\",\"value\":46444.798},{\"name\":\"Costa Rica\",\"value\":4669.685},{\"name\":\"Cuba\",\"value\":11281.768},{\"name\":\"Northern Cyprus\",\"value\":1.468},{\"name\":\"Cyprus\",\"value\":1103.685},{\"name\":\"Czech Republic\",\"value\":10553.701},{\"name\":\"Germany\",\"value\":83017.404},{\"name\":\"Djibouti\",\"value\":834.036},{\"name\":\"Denmark\",\"value\":5550.959},{\"name\":\"Dominican Republic\",\"value\":10016.797},{\"name\":\"Algeria\",\"value\":37062.82},{\"name\":\"Ecuador\",\"value\":15001.072},{\"name\":\"Egypt\",\"value\":78075.705},{\"name\":\"Eritrea\",\"value\":5741.159},{\"name\":\"Spain\",\"value\":46182.038},{\"name\":\"Estonia\",\"value\":1298.533},{\"name\":\"Ethiopia\",\"value\":87095.281},{\"name\":\"Finland\",\"value\":5367.693},{\"name\":\"Fiji\",\"value\":860.559},{\"name\":\"Falkland Islands\",\"value\":49.581},{\"name\":\"France\",\"value\":63230.866},{\"name\":\"Gabon\",\"value\":1556.222},{\"name\":\"United Kingdom\",\"value\":62066.35},{\"name\":\"Georgia\",\"value\":4388.674},{\"name\":\"Ghana\",\"value\":24262.901},{\"name\":\"Guinea\",\"value\":10876.033},{\"name\":\"Gambia\",\"value\":1680.64},{\"name\":\"Guinea Bissau\",\"value\":10876.033},{\"name\":\"Equatorial Guinea\",\"value\":696.167},{\"name\":\"Greece\",\"value\":11109.999},{\"name\":\"Greenland\",\"value\":56.546},{\"name\":\"Guatemala\",\"value\":14341.576},{\"name\":\"French Guiana\",\"value\":231.169},{\"name\":\"Guyana\",\"value\":786.126},{\"name\":\"Honduras\",\"value\":7621.204},{\"name\":\"Croatia\",\"value\":4338.027},{\"name\":\"Haiti\",\"value\":9896.4},{\"name\":\"Hungary\",\"value\":10014.633},{\"name\":\"Indonesia\",\"value\":240676.485},{\"name\":\"India\",\"value\":1205624.648},{\"name\":\"Ireland\",\"value\":4467.561},{\"name\":\"Iran\",\"value\":240676.485},{\"name\":\"Iraq\",\"value\":30962.38},{\"name\":\"Iceland\",\"value\":318.042},{\"name\":\"Israel\",\"value\":7420.368},{\"name\":\"Italy\",\"value\":60508.978},{\"name\":\"Jamaica\",\"value\":2741.485},{\"name\":\"Jordan\",\"value\":6454.554},{\"name\":\"Japan\",\"value\":127352.833},{\"name\":\"Kazakhstan\",\"value\":15921.127},{\"name\":\"Kenya\",\"value\":40909.194},{\"name\":\"Kyrgyzstan\",\"value\":5334.223},{\"name\":\"Cambodia\",\"value\":14364.931},{\"name\":\"South Korea\",\"value\":51452.352},{\"name\":\"Kosovo\",\"value\":97.743},{\"name\":\"Kuwait\",\"value\":2991.58},{\"name\":\"Laos\",\"value\":6395.713},{\"name\":\"Lebanon\",\"value\":4341.092},{\"name\":\"Liberia\",\"value\":3957.99},{\"name\":\"Libya\",\"value\":6040.612},{\"name\":\"Sri Lanka\",\"value\":20758.779},{\"name\":\"Lesotho\",\"value\":2008.921},{\"name\":\"Lithuania\",\"value\":3068.457},{\"name\":\"Luxembourg\",\"value\":507.885},{\"name\":\"Latvia\",\"value\":2090.519},{\"name\":\"Morocco\",\"value\":31642.36},{\"name\":\"Moldova\",\"value\":103.619},{\"name\":\"Madagascar\",\"value\":21079.532},{\"name\":\"Mexico\",\"value\":117886.404},{\"name\":\"Macedonia\",\"value\":507.885},{\"name\":\"Mali\",\"value\":13985.961},{\"name\":\"Myanmar\",\"value\":51931.231},{\"name\":\"Montenegro\",\"value\":620.078},{\"name\":\"Mongolia\",\"value\":2712.738},{\"name\":\"Mozambique\",\"value\":23967.265},{\"name\":\"Mauritania\",\"value\":3609.42},{\"name\":\"Malawi\",\"value\":15013.694},{\"name\":\"Malaysia\",\"value\":28275.835},{\"name\":\"Namibia\",\"value\":2178.967},{\"name\":\"New Caledonia\",\"value\":246.379},{\"name\":\"Niger\",\"value\":15893.746},{\"name\":\"Nigeria\",\"value\":159707.78},{\"name\":\"Nicaragua\",\"value\":5822.209},{\"name\":\"Netherlands\",\"value\":16615.243},{\"name\":\"Norway\",\"value\":4891.251},{\"name\":\"Nepal\",\"value\":26846.016},{\"name\":\"New Zealand\",\"value\":4368.136},{\"name\":\"Oman\",\"value\":2802.768},{\"name\":\"Pakistan\",\"value\":173149.306},{\"name\":\"Panama\",\"value\":3678.128},{\"name\":\"Peru\",\"value\":29262.83},{\"name\":\"Philippines\",\"value\":93444.322},{\"name\":\"Papua New Guinea\",\"value\":6858.945},{\"name\":\"Poland\",\"value\":38198.754},{\"name\":\"Puerto Rico\",\"value\":3709.671},{\"name\":\"North Korea\",\"value\":1.468},{\"name\":\"Portugal\",\"value\":10589.792},{\"name\":\"Paraguay\",\"value\":6459.721},{\"name\":\"Qatar\",\"value\":1749.713},{\"name\":\"Romania\",\"value\":21861.476},{\"name\":\"Russia\",\"value\":21861.476},{\"name\":\"Rwanda\",\"value\":10836.732},{\"name\":\"Western Sahara\",\"value\":514.648},{\"name\":\"Saudi Arabia\",\"value\":27258.387},{\"name\":\"Sudan\",\"value\":35652.002},{\"name\":\"South Sudan\",\"value\":9940.929},{\"name\":\"Senegal\",\"value\":12950.564},{\"name\":\"Solomon Islands\",\"value\":526.447},{\"name\":\"Sierra Leone\",\"value\":5751.976},{\"name\":\"El Salvador\",\"value\":6218.195},{\"name\":\"Somaliland\",\"value\":9636.173},{\"name\":\"Somalia\",\"value\":9636.173},{\"name\":\"Republic of Serbia\",\"value\":3573.024},{\"name\":\"Suriname\",\"value\":524.96},{\"name\":\"Slovakia\",\"value\":5433.437},{\"name\":\"Slovenia\",\"value\":2054.232},{\"name\":\"Sweden\",\"value\":9382.297},{\"name\":\"Swaziland\",\"value\":1193.148},{\"name\":\"Syria\",\"value\":7830.534},{\"name\":\"Chad\",\"value\":11720.781},{\"name\":\"Togo\",\"value\":6306.014},{\"name\":\"Thailand\",\"value\":66402.316},{\"name\":\"Tajikistan\",\"value\":7627.326},{\"name\":\"Turkmenistan\",\"value\":5041.995},{\"name\":\"East Timor\",\"value\":10016.797},{\"name\":\"Trinidad and Tobago\",\"value\":1328.095},{\"name\":\"Tunisia\",\"value\":10631.83},{\"name\":\"Turkey\",\"value\":72137.546},{\"name\":\"United Republic of Tanzania\",\"value\":44973.33},{\"name\":\"Uganda\",\"value\":33987.213},{\"name\":\"Ukraine\",\"value\":46050.22},{\"name\":\"Uruguay\",\"value\":3371.982},{\"name\":\"United States of America\",\"value\":312247.116},{\"name\":\"Uzbekistan\",\"value\":27769.27},{\"name\":\"Venezuela\",\"value\":236.299},{\"name\":\"Vietnam\",\"value\":89047.397},{\"name\":\"Vanuatu\",\"value\":236.299},{\"name\":\"West Bank\",\"value\":13.565},{\"name\":\"Yemen\",\"value\":22763.008},{\"name\":\"South Africa\",\"value\":51452.352},{\"name\":\"Zambia\",\"value\":13216.985},{\"name\":\"Zimbabwe\",\"value\":13076.978}]}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  标准地图5
 */
- (void)showStandardMap5Demo {
    NSString *json = @"{\"tooltip\":{\"trigger\":\"item\",\"formatter\":\"{b}\"},\"series\":[{\"name\":\"世界地图\",\"type\":\"map\",\"mapType\":\"world\",\"roam\":true,\"selectedMode\":\"single\",\"itemStyle\":{\"normal\":{\"label\":{\"show\":false}},\"emphasis\":{\"label\":{\"show\":true}}},\"data\":[],\"nameMap\":{\"Afghanistan\":\"阿富汗\",\"Angola\":\"安哥拉\",\"Albania\":\"阿尔巴尼亚\",\"United Arab Emirates\":\"阿联酋\",\"Argentina\":\"阿根廷\",\"Armenia\":\"亚美尼亚\",\"French Southern and Antarctic Lands\":\"法属南半球和南极领地\",\"Australia\":\"澳大利亚\",\"Austria\":\"奥地利\",\"Azerbaijan\":\"阿塞拜疆\",\"Burundi\":\"布隆迪\",\"Belgium\":\"比利时\",\"Benin\":\"贝宁\",\"Burkina Faso\":\"布基纳法索\",\"Bangladesh\":\"孟加拉国\",\"Bulgaria\":\"保加利亚\",\"The Bahamas\":\"巴哈马\",\"Bosnia and Herzegovina\":\"波斯尼亚和黑塞哥维那\",\"Belarus\":\"白俄罗斯\",\"Belize\":\"伯利兹\",\"Bermuda\":\"百慕大\",\"Bolivia\":\"玻利维亚\",\"Brazil\":\"巴西\",\"Brunei\":\"文莱\",\"Bhutan\":\"不丹\",\"Botswana\":\"博茨瓦纳\",\"Central African Republic\":\"中非共和国\",\"Canada\":\"加拿大\",\"Switzerland\":\"瑞士\",\"Chile\":\"智利\",\"China\":\"中国\",\"Ivory Coast\":\"象牙海岸\",\"Cameroon\":\"喀麦隆\",\"Democratic Republic of the Congo\":\"刚果民主共和国\",\"Republic of the Congo\":\"刚果共和国\",\"Colombia\":\"哥伦比亚\",\"Costa Rica\":\"哥斯达黎加\",\"Cuba\":\"古巴\",\"Northern Cyprus\":\"北塞浦路斯\",\"Cyprus\":\"塞浦路斯\",\"Czech Republic\":\"捷克共和国\",\"Germany\":\"德国\",\"Djibouti\":\"吉布提\",\"Denmark\":\"丹麦\",\"Dominican Republic\":\"多明尼加共和国\",\"Algeria\":\"阿尔及利亚\",\"Ecuador\":\"厄瓜多尔\",\"Egypt\":\"埃及\",\"Eritrea\":\"厄立特里亚\",\"Spain\":\"西班牙\",\"Estonia\":\"爱沙尼亚\",\"Ethiopia\":\"埃塞俄比亚\",\"Finland\":\"芬兰\",\"Fiji\":\"斐\",\"Falkland Islands\":\"福克兰群岛\",\"France\":\"法国\",\"Gabon\":\"加蓬\",\"United Kingdom\":\"英国\",\"Georgia\":\"格鲁吉亚\",\"Ghana\":\"加纳\",\"Guinea\":\"几内亚\",\"Gambia\":\"冈比亚\",\"Guinea Bissau\":\"几内亚比绍\",\"Equatorial Guinea\":\"赤道几内亚\",\"Greece\":\"希腊\",\"Greenland\":\"格陵兰\",\"Guatemala\":\"危地马拉\",\"French Guiana\":\"法属圭亚那\",\"Guyana\":\"圭亚那\",\"Honduras\":\"洪都拉斯\",\"Croatia\":\"克罗地亚\",\"Haiti\":\"海地\",\"Hungary\":\"匈牙利\",\"Indonesia\":\"印尼\",\"India\":\"印度\",\"Ireland\":\"爱尔兰\",\"Iran\":\"伊朗\",\"Iraq\":\"伊拉克\",\"Iceland\":\"冰岛\",\"Israel\":\"以色列\",\"Italy\":\"意大利\",\"Jamaica\":\"牙买加\",\"Jordan\":\"约旦\",\"Japan\":\"日本\",\"Kazakhstan\":\"哈萨克斯坦\",\"Kenya\":\"肯尼亚\",\"Kyrgyzstan\":\"吉尔吉斯斯坦\",\"Cambodia\":\"柬埔寨\",\"South Korea\":\"韩国\",\"Kosovo\":\"科索沃\",\"Kuwait\":\"科威特\",\"Laos\":\"老挝\",\"Lebanon\":\"黎巴嫩\",\"Liberia\":\"利比里亚\",\"Libya\":\"利比亚\",\"Sri Lanka\":\"斯里兰卡\",\"Lesotho\":\"莱索托\",\"Lithuania\":\"立陶宛\",\"Luxembourg\":\"卢森堡\",\"Latvia\":\"拉脱维亚\",\"Morocco\":\"摩洛哥\",\"Moldova\":\"摩尔多瓦\",\"Madagascar\":\"马达加斯加\",\"Mexico\":\"墨西哥\",\"Macedonia\":\"马其顿\",\"Mali\":\"马里\",\"Myanmar\":\"缅甸\",\"Montenegro\":\"黑山\",\"Mongolia\":\"蒙古\",\"Mozambique\":\"莫桑比克\",\"Mauritania\":\"毛里塔尼亚\",\"Malawi\":\"马拉维\",\"Malaysia\":\"马来西亚\",\"Namibia\":\"纳米比亚\",\"New Caledonia\":\"新喀里多尼亚\",\"Niger\":\"尼日尔\",\"Nigeria\":\"尼日利亚\",\"Nicaragua\":\"尼加拉瓜\",\"Netherlands\":\"荷兰\",\"Norway\":\"挪威\",\"Nepal\":\"尼泊尔\",\"New Zealand\":\"新西兰\",\"Oman\":\"阿曼\",\"Pakistan\":\"巴基斯坦\",\"Panama\":\"巴拿马\",\"Peru\":\"秘鲁\",\"Philippines\":\"菲律宾\",\"Papua New Guinea\":\"巴布亚新几内亚\",\"Poland\":\"波兰\",\"Puerto Rico\":\"波多黎各\",\"North Korea\":\"北朝鲜\",\"Portugal\":\"葡萄牙\",\"Paraguay\":\"巴拉圭\",\"Qatar\":\"卡塔尔\",\"Romania\":\"罗马尼亚\",\"Russia\":\"俄罗斯\",\"Rwanda\":\"卢旺达\",\"Western Sahara\":\"西撒哈拉\",\"Saudi Arabia\":\"沙特阿拉伯\",\"Sudan\":\"苏丹\",\"South Sudan\":\"南苏丹\",\"Senegal\":\"塞内加尔\",\"Solomon Islands\":\"所罗门群岛\",\"Sierra Leone\":\"塞拉利昂\",\"El Salvador\":\"萨尔瓦多\",\"Somaliland\":\"索马里兰\",\"Somalia\":\"索马里\",\"Republic of Serbia\":\"塞尔维亚共和国\",\"Suriname\":\"苏里南\",\"Slovakia\":\"斯洛伐克\",\"Slovenia\":\"斯洛文尼亚\",\"Sweden\":\"瑞典\",\"Swaziland\":\"斯威士兰\",\"Syria\":\"叙利亚\",\"Chad\":\"乍得\",\"Togo\":\"多哥\",\"Thailand\":\"泰国\",\"Tajikistan\":\"塔吉克斯坦\",\"Turkmenistan\":\"土库曼斯坦\",\"East Timor\":\"东帝汶\",\"Trinidad and Tobago\":\"特里尼达和多巴哥\",\"Tunisia\":\"突尼斯\",\"Turkey\":\"土耳其\",\"United Republic of Tanzania\":\"坦桑尼亚联合共和国\",\"Uganda\":\"乌干达\",\"Ukraine\":\"乌克兰\",\"Uruguay\":\"乌拉圭\",\"United States of America\":\"美国\",\"Uzbekistan\":\"乌兹别克斯坦\",\"Venezuela\":\"委内瑞拉\",\"Vietnam\":\"越南\",\"Vanuatu\":\"瓦努阿图\",\"West Bank\":\"西岸\",\"Yemen\":\"也门\",\"South Africa\":\"南非\",\"Zambia\":\"赞比亚\",\"Zimbabwe\":\"津巴布韦\"}}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  多地图
 */
- (void)showMultiMapDemo {
    NSString *json = @"{\"tooltip\":{\"trigger\":\"item\"},\"toolbox\":{\"show\":true,\"orient\":\"vertical\",\"x\":\"right\",\"y\":\"center\",\"feature\":{\"mark\":{\"show\":true},\"dataView\":{\"show\":true,\"readOnly\":false}}},\"series\":[{\"tooltip\":{\"trigger\":\"item\",\"formatter\":\"{b}\"},\"name\":\"选择器\",\"type\":\"map\",\"mapType\":\"china\",\"mapLocation\":{\"x\":\"left\",\"y\":\"top\",\"width\":\"30%\"},\"roam\":true,\"selectedMode\":\"single\",\"itemStyle\":{\"emphasis\":{\"label\":{\"show\":true}}},\"data\":[{\"name\":\"北京\",\"selected\":false},{\"name\":\"天津\",\"selected\":false},{\"name\":\"上海\",\"selected\":false},{\"name\":\"重庆\",\"selected\":false},{\"name\":\"河北\",\"selected\":false},{\"name\":\"河南\",\"selected\":false},{\"name\":\"云南\",\"selected\":false},{\"name\":\"辽宁\",\"selected\":false},{\"name\":\"黑龙江\",\"selected\":false},{\"name\":\"湖南\",\"selected\":false},{\"name\":\"安徽\",\"selected\":false},{\"name\":\"山东\",\"selected\":false},{\"name\":\"新疆\",\"selected\":false},{\"name\":\"江苏\",\"selected\":false},{\"name\":\"浙江\",\"selected\":false},{\"name\":\"江西\",\"selected\":false},{\"name\":\"湖北\",\"selected\":false},{\"name\":\"广西\",\"selected\":false},{\"name\":\"甘肃\",\"selected\":false},{\"name\":\"山西\",\"selected\":false},{\"name\":\"内蒙古\",\"selected\":false},{\"name\":\"陕西\",\"selected\":false},{\"name\":\"吉林\",\"selected\":false},{\"name\":\"福建\",\"selected\":false},{\"name\":\"贵州\",\"selected\":false},{\"name\":\"广东\",\"selected\":false},{\"name\":\"青海\",\"selected\":false},{\"name\":\"西藏\",\"selected\":false},{\"name\":\"四川\",\"selected\":false},{\"name\":\"宁夏\",\"selected\":false},{\"name\":\"海南\",\"selected\":false},{\"name\":\"台湾\",\"selected\":false},{\"name\":\"香港\",\"selected\":false},{\"name\":\"澳门\",\"selected\":false}]}],\"animation\":false}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
    __weak typeof(self) weakSelf = self;
    [_yEchartView addHandlerForAction:PYEchartActionMapSelected withBlock:^(NSDictionary *params) {
        NSDictionary *selected = params[@"selected"];
        NSString *selectedProvince;
        NSString *name;
        NSMutableDictionary *data;
        NSArray *datas = ((NSArray *)((NSDictionary *)option.series[0])[@"data"]);
        int l = (int)datas.count;
        for (int i = 0 ; i < l; i++) {
            data = [[NSMutableDictionary alloc] initWithDictionary:(NSMutableDictionary *)datas[i]];
            name = data[@"name"];
            [data setObject:@([selected[name] boolValue]) forKey:@"selected"];

            if ([selected[name] boolValue]) {
                selectedProvince = name;
            }
        }
        if (selectedProvince == nil) {
            ((PYSeries *)option.series[0]).data = data;
            option.legend = nil;
            option.dataZoom = nil;
            [weakSelf.yEchartView refreshEchartsWithOption:option];
            return;
        }
        NSString *seriesJson = [NSString stringWithFormat:@"{\"name\":\"随机数据\",\"type\":\"map\",\"mapType\":\"%@\",\"itemStyle\":{\"normal\":{\"label\":{\"show\":true}},\"emphasis\":{\"label\":{\"show\":true}}},\"mapLocation\":{\"x\":\"35%%\",\"width\":\"50%%\"},\"roam\":true,\"data\":[{\"name\":\"重庆市\",\"value\":790},{\"name\":\"北京市\",\"value\":189},{\"name\":\"天津市\",\"value\":912},{\"name\":\"上海市\",\"value\":949},{\"name\":\"香港\",\"value\":400},{\"name\":\"澳门\",\"value\":748},{\"name\":\"巴音郭楞蒙古自治州\",\"value\":630},{\"name\":\"和田地区\",\"value\":142},{\"name\":\"哈密地区\",\"value\":803},{\"name\":\"阿克苏地区\",\"value\":528},{\"name\":\"阿勒泰地区\",\"value\":588},{\"name\":\"喀什地区\",\"value\":139},{\"name\":\"塔城地区\",\"value\":94},{\"name\":\"昌吉回族自治州\",\"value\":542},{\"name\":\"克孜勒苏柯尔克孜自治州\",\"value\":394},{\"name\":\"吐鲁番地区\",\"value\":782},{\"name\":\"伊犁哈萨克自治州\",\"value\":799},{\"name\":\"博尔塔拉蒙古自治州\",\"value\":290},{\"name\":\"乌鲁木齐市\",\"value\":901},{\"name\":\"克拉玛依市\",\"value\":443},{\"name\":\"阿拉尔市\",\"value\":454},{\"name\":\"图木舒克市\",\"value\":888},{\"name\":\"五家渠市\",\"value\":119},{\"name\":\"石河子市\",\"value\":239},{\"name\":\"那曲地区\",\"value\":840},{\"name\":\"阿里地区\",\"value\":563},{\"name\":\"日喀则地区\",\"value\":402},{\"name\":\"林芝地区\",\"value\":308},{\"name\":\"昌都地区\",\"value\":702},{\"name\":\"山南地区\",\"value\":842},{\"name\":\"拉萨市\",\"value\":256},{\"name\":\"呼伦贝尔市\",\"value\":53},{\"name\":\"阿拉善盟\",\"value\":556},{\"name\":\"锡林郭勒盟\",\"value\":462},{\"name\":\"鄂尔多斯市\",\"value\":603},{\"name\":\"赤峰市\",\"value\":909},{\"name\":\"巴彦淖尔市\",\"value\":211},{\"name\":\"通辽市\",\"value\":127},{\"name\":\"乌兰察布市\",\"value\":823},{\"name\":\"兴安盟\",\"value\":513},{\"name\":\"包头市\",\"value\":387},{\"name\":\"呼和浩特市\",\"value\":887},{\"name\":\"乌海市\",\"value\":644},{\"name\":\"海西蒙古族藏族自治州\",\"value\":642},{\"name\":\"玉树藏族自治州\",\"value\":339},{\"name\":\"果洛藏族自治州\",\"value\":519},{\"name\":\"海南藏族自治州\",\"value\":332},{\"name\":\"海北藏族自治州\",\"value\":982},{\"name\":\"黄南藏族自治州\",\"value\":721},{\"name\":\"海东地区\",\"value\":618},{\"name\":\"西宁市\",\"value\":920},{\"name\":\"甘孜藏族自治州\",\"value\":728},{\"name\":\"阿坝藏族羌族自治州\",\"value\":292},{\"name\":\"凉山彝族自治州\",\"value\":996},{\"name\":\"绵阳市\",\"value\":999},{\"name\":\"达州市\",\"value\":886},{\"name\":\"广元市\",\"value\":552},{\"name\":\"雅安市\",\"value\":429},{\"name\":\"宜宾市\",\"value\":449},{\"name\":\"乐山市\",\"value\":154},{\"name\":\"南充市\",\"value\":209},{\"name\":\"巴中市\",\"value\":630},{\"name\":\"泸州市\",\"value\":708},{\"name\":\"成都市\",\"value\":53},{\"name\":\"资阳市\",\"value\":662},{\"name\":\"攀枝花市\",\"value\":491},{\"name\":\"眉山市\",\"value\":971},{\"name\":\"广安市\",\"value\":760},{\"name\":\"德阳市\",\"value\":68},{\"name\":\"内江市\",\"value\":618},{\"name\":\"遂宁市\",\"value\":250},{\"name\":\"自贡市\",\"value\":273},{\"name\":\"黑河市\",\"value\":205},{\"name\":\"大兴安岭地区\",\"value\":104},{\"name\":\"哈尔滨市\",\"value\":346},{\"name\":\"齐齐哈尔市\",\"value\":202},{\"name\":\"牡丹江市\",\"value\":378},{\"name\":\"绥化市\",\"value\":616},{\"name\":\"伊春市\",\"value\":960},{\"name\":\"佳木斯市\",\"value\":29},{\"name\":\"鸡西市\",\"value\":548},{\"name\":\"双鸭山市\",\"value\":753},{\"name\":\"大庆市\",\"value\":815},{\"name\":\"鹤岗市\",\"value\":136},{\"name\":\"七台河市\",\"value\":895},{\"name\":\"酒泉市\",\"value\":717},{\"name\":\"张掖市\",\"value\":521},{\"name\":\"甘南藏族自治州\",\"value\":254},{\"name\":\"武威市\",\"value\":131},{\"name\":\"陇南市\",\"value\":925},{\"name\":\"庆阳市\",\"value\":369},{\"name\":\"白银市\",\"value\":62},{\"name\":\"定西市\",\"value\":606},{\"name\":\"天水市\",\"value\":740},{\"name\":\"兰州市\",\"value\":761},{\"name\":\"平凉市\",\"value\":517},{\"name\":\"临夏回族自治州\",\"value\":480},{\"name\":\"金昌市\",\"value\":568},{\"name\":\"嘉峪关市\",\"value\":613},{\"name\":\"普洱市\",\"value\":947},{\"name\":\"红河哈尼族彝族自治州\",\"value\":135},{\"name\":\"文山壮族苗族自治州\",\"value\":533},{\"name\":\"曲靖市\",\"value\":878},{\"name\":\"楚雄彝族自治州\",\"value\":742},{\"name\":\"大理白族自治州\",\"value\":628},{\"name\":\"临沧市\",\"value\":471},{\"name\":\"迪庆藏族自治州\",\"value\":34},{\"name\":\"昭通市\",\"value\":977},{\"name\":\"昆明市\",\"value\":616},{\"name\":\"丽江市\",\"value\":630},{\"name\":\"西双版纳傣族自治州\",\"value\":352},{\"name\":\"保山市\",\"value\":647},{\"name\":\"玉溪市\",\"value\":449},{\"name\":\"怒江傈僳族自治州\",\"value\":771},{\"name\":\"德宏傣族景颇族自治州\",\"value\":59},{\"name\":\"百色市\",\"value\":718},{\"name\":\"河池市\",\"value\":968},{\"name\":\"桂林市\",\"value\":314},{\"name\":\"南宁市\",\"value\":421},{\"name\":\"柳州市\",\"value\":3},{\"name\":\"崇左市\",\"value\":232},{\"name\":\"来宾市\",\"value\":540},{\"name\":\"玉林市\",\"value\":820},{\"name\":\"梧州市\",\"value\":551},{\"name\":\"贺州市\",\"value\":669},{\"name\":\"钦州市\",\"value\":473},{\"name\":\"贵港市\",\"value\":321},{\"name\":\"防城港市\",\"value\":862},{\"name\":\"北海市\",\"value\":361},{\"name\":\"怀化市\",\"value\":289},{\"name\":\"永州市\",\"value\":278},{\"name\":\"邵阳市\",\"value\":148},{\"name\":\"郴州市\",\"value\":819},{\"name\":\"常德市\",\"value\":616},{\"name\":\"湘西土家族苗族自治州\",\"value\":661},{\"name\":\"衡阳市\",\"value\":705},{\"name\":\"岳阳市\",\"value\":202},{\"name\":\"益阳市\",\"value\":369},{\"name\":\"长沙市\",\"value\":580},{\"name\":\"株洲市\",\"value\":514},{\"name\":\"张家界市\",\"value\":761},{\"name\":\"娄底市\",\"value\":349},{\"name\":\"湘潭市\",\"value\":17},{\"name\":\"榆林市\",\"value\":776},{\"name\":\"延安市\",\"value\":556},{\"name\":\"汉中市\",\"value\":984},{\"name\":\"安康市\",\"value\":458},{\"name\":\"商洛市\",\"value\":149},{\"name\":\"宝鸡市\",\"value\":691},{\"name\":\"渭南市\",\"value\":204},{\"name\":\"咸阳市\",\"value\":193},{\"name\":\"西安市\",\"value\":196},{\"name\":\"铜川市\",\"value\":444},{\"name\":\"清远市\",\"value\":642},{\"name\":\"韶关市\",\"value\":895},{\"name\":\"湛江市\",\"value\":703},{\"name\":\"梅州市\",\"value\":467},{\"name\":\"河源市\",\"value\":88},{\"name\":\"肇庆市\",\"value\":205},{\"name\":\"惠州市\",\"value\":596},{\"name\":\"茂名市\",\"value\":193},{\"name\":\"江门市\",\"value\":7},{\"name\":\"阳江市\",\"value\":519},{\"name\":\"云浮市\",\"value\":847},{\"name\":\"广州市\",\"value\":725},{\"name\":\"汕尾市\",\"value\":103},{\"name\":\"揭阳市\",\"value\":513},{\"name\":\"珠海市\",\"value\":192},{\"name\":\"佛山市\",\"value\":684},{\"name\":\"潮州市\",\"value\":857},{\"name\":\"汕头市\",\"value\":714},{\"name\":\"深圳市\",\"value\":551},{\"name\":\"东莞市\",\"value\":689},{\"name\":\"中山市\",\"value\":581},{\"name\":\"延边朝鲜族自治州\",\"value\":874},{\"name\":\"吉林市\",\"value\":34},{\"name\":\"白城市\",\"value\":43},{\"name\":\"松原市\",\"value\":320},{\"name\":\"长春市\",\"value\":278},{\"name\":\"白山市\",\"value\":317},{\"name\":\"通化市\",\"value\":64},{\"name\":\"四平市\",\"value\":779},{\"name\":\"辽源市\",\"value\":503},{\"name\":\"承德市\",\"value\":743},{\"name\":\"张家口市\",\"value\":481},{\"name\":\"保定市\",\"value\":571},{\"name\":\"唐山市\",\"value\":893},{\"name\":\"沧州市\",\"value\":685},{\"name\":\"石家庄市\",\"value\":814},{\"name\":\"邢台市\",\"value\":346},{\"name\":\"邯郸市\",\"value\":611},{\"name\":\"秦皇岛市\",\"value\":30},{\"name\":\"衡水市\",\"value\":594},{\"name\":\"廊坊市\",\"value\":417},{\"name\":\"恩施土家族苗族自治州\",\"value\":637},{\"name\":\"十堰市\",\"value\":485},{\"name\":\"宜昌市\",\"value\":151},{\"name\":\"襄樊市\",\"value\":635},{\"name\":\"黄冈市\",\"value\":615},{\"name\":\"荆州市\",\"value\":938},{\"name\":\"荆门市\",\"value\":607},{\"name\":\"咸宁市\",\"value\":578},{\"name\":\"随州市\",\"value\":37},{\"name\":\"孝感市\",\"value\":249},{\"name\":\"武汉市\",\"value\":100},{\"name\":\"黄石市\",\"value\":113},{\"name\":\"神农架林区\",\"value\":194},{\"name\":\"天门市\",\"value\":874},{\"name\":\"仙桃市\",\"value\":541},{\"name\":\"潜江市\",\"value\":528},{\"name\":\"鄂州市\",\"value\":730},{\"name\":\"遵义市\",\"value\":877},{\"name\":\"黔东南苗族侗族自治州\",\"value\":304},{\"name\":\"毕节地区\",\"value\":577},{\"name\":\"黔南布依族苗族自治州\",\"value\":121},{\"name\":\"铜仁地区\",\"value\":165},{\"name\":\"黔西南布依族苗族自治州\",\"value\":379},{\"name\":\"六盘水市\",\"value\":12},{\"name\":\"安顺市\",\"value\":457},{\"name\":\"贵阳市\",\"value\":268},{\"name\":\"烟台市\",\"value\":503},{\"name\":\"临沂市\",\"value\":280},{\"name\":\"潍坊市\",\"value\":233},{\"name\":\"青岛市\",\"value\":139},{\"name\":\"菏泽市\",\"value\":383},{\"name\":\"济宁市\",\"value\":318},{\"name\":\"德州市\",\"value\":162},{\"name\":\"滨州市\",\"value\":841},{\"name\":\"聊城市\",\"value\":228},{\"name\":\"东营市\",\"value\":167},{\"name\":\"济南市\",\"value\":682},{\"name\":\"泰安市\",\"value\":897},{\"name\":\"威海市\",\"value\":307},{\"name\":\"日照市\",\"value\":160},{\"name\":\"淄博市\",\"value\":629},{\"name\":\"枣庄市\",\"value\":177},{\"name\":\"莱芜市\",\"value\":224},{\"name\":\"赣州市\",\"value\":666},{\"name\":\"吉安市\",\"value\":494},{\"name\":\"上饶市\",\"value\":819},{\"name\":\"九江市\",\"value\":848},{\"name\":\"抚州市\",\"value\":232},{\"name\":\"宜春市\",\"value\":781},{\"name\":\"南昌市\",\"value\":959},{\"name\":\"景德镇市\",\"value\":533},{\"name\":\"萍乡市\",\"value\":170},{\"name\":\"鹰潭市\",\"value\":164},{\"name\":\"新余市\",\"value\":926},{\"name\":\"南阳市\",\"value\":49},{\"name\":\"信阳市\",\"value\":747},{\"name\":\"洛阳市\",\"value\":548},{\"name\":\"驻马店市\",\"value\":356},{\"name\":\"周口市\",\"value\":250},{\"name\":\"商丘市\",\"value\":230},{\"name\":\"三门峡市\",\"value\":957},{\"name\":\"新乡市\",\"value\":545},{\"name\":\"平顶山市\",\"value\":488},{\"name\":\"郑州市\",\"value\":474},{\"name\":\"安阳市\",\"value\":132},{\"name\":\"开封市\",\"value\":131},{\"name\":\"焦作市\",\"value\":922},{\"name\":\"许昌市\",\"value\":965},{\"name\":\"濮阳市\",\"value\":769},{\"name\":\"漯河市\",\"value\":92},{\"name\":\"鹤壁市\",\"value\":130},{\"name\":\"大连市\",\"value\":808},{\"name\":\"朝阳市\",\"value\":230},{\"name\":\"丹东市\",\"value\":473},{\"name\":\"铁岭市\",\"value\":94},{\"name\":\"沈阳市\",\"value\":19},{\"name\":\"抚顺市\",\"value\":738},{\"name\":\"葫芦岛市\",\"value\":425},{\"name\":\"阜新市\",\"value\":187},{\"name\":\"锦州市\",\"value\":947},{\"name\":\"鞍山市\",\"value\":602},{\"name\":\"本溪市\",\"value\":965},{\"name\":\"营口市\",\"value\":970},{\"name\":\"辽阳市\",\"value\":932},{\"name\":\"盘锦市\",\"value\":891},{\"name\":\"忻州市\",\"value\":406},{\"name\":\"吕梁市\",\"value\":143},{\"name\":\"临汾市\",\"value\":394},{\"name\":\"晋中市\",\"value\":464},{\"name\":\"运城市\",\"value\":826},{\"name\":\"大同市\",\"value\":864},{\"name\":\"长治市\",\"value\":291},{\"name\":\"朔州市\",\"value\":911},{\"name\":\"晋城市\",\"value\":410},{\"name\":\"太原市\",\"value\":134},{\"name\":\"阳泉市\",\"value\":987},{\"name\":\"六安市\",\"value\":143},{\"name\":\"安庆市\",\"value\":226},{\"name\":\"滁州市\",\"value\":228},{\"name\":\"宣城市\",\"value\":960},{\"name\":\"阜阳市\",\"value\":708},{\"name\":\"宿州市\",\"value\":996},{\"name\":\"黄山市\",\"value\":346},{\"name\":\"巢湖市\",\"value\":844},{\"name\":\"亳州市\",\"value\":339},{\"name\":\"池州市\",\"value\":656},{\"name\":\"合肥市\",\"value\":740},{\"name\":\"蚌埠市\",\"value\":588},{\"name\":\"芜湖市\",\"value\":82},{\"name\":\"淮北市\",\"value\":853},{\"name\":\"淮南市\",\"value\":802},{\"name\":\"马鞍山市\",\"value\":76},{\"name\":\"铜陵市\",\"value\":733},{\"name\":\"南平市\",\"value\":883},{\"name\":\"三明市\",\"value\":238},{\"name\":\"龙岩市\",\"value\":794},{\"name\":\"宁德市\",\"value\":515},{\"name\":\"福州市\",\"value\":808},{\"name\":\"漳州市\",\"value\":175},{\"name\":\"泉州市\",\"value\":491},{\"name\":\"莆田市\",\"value\":795},{\"name\":\"厦门市\",\"value\":458},{\"name\":\"丽水市\",\"value\":893},{\"name\":\"杭州市\",\"value\":832},{\"name\":\"温州市\",\"value\":662},{\"name\":\"宁波市\",\"value\":184},{\"name\":\"舟山市\",\"value\":709},{\"name\":\"台州市\",\"value\":589},{\"name\":\"金华市\",\"value\":24},{\"name\":\"衢州市\",\"value\":731},{\"name\":\"绍兴市\",\"value\":285},{\"name\":\"嘉兴市\",\"value\":677},{\"name\":\"湖州市\",\"value\":180},{\"name\":\"盐城市\",\"value\":244},{\"name\":\"徐州市\",\"value\":274},{\"name\":\"南通市\",\"value\":872},{\"name\":\"淮安市\",\"value\":385},{\"name\":\"苏州市\",\"value\":811},{\"name\":\"宿迁市\",\"value\":160},{\"name\":\"连云港市\",\"value\":726},{\"name\":\"扬州市\",\"value\":771},{\"name\":\"南京市\",\"value\":162},{\"name\":\"泰州市\",\"value\":551},{\"name\":\"无锡市\",\"value\":1},{\"name\":\"常州市\",\"value\":225},{\"name\":\"镇江市\",\"value\":98},{\"name\":\"吴忠市\",\"value\":929},{\"name\":\"中卫市\",\"value\":210},{\"name\":\"固原市\",\"value\":97},{\"name\":\"银川市\",\"value\":619},{\"name\":\"石嘴山市\",\"value\":477},{\"name\":\"儋州市\",\"value\":792},{\"name\":\"文昌市\",\"value\":73},{\"name\":\"乐东黎族自治县\",\"value\":463},{\"name\":\"三亚市\",\"value\":448},{\"name\":\"琼中黎族苗族自治县\",\"value\":707},{\"name\":\"东方市\",\"value\":322},{\"name\":\"海口市\",\"value\":446},{\"name\":\"万宁市\",\"value\":294},{\"name\":\"澄迈县\",\"value\":428},{\"name\":\"白沙黎族自治县\",\"value\":297},{\"name\":\"琼海市\",\"value\":406},{\"name\":\"昌江黎族自治县\",\"value\":149},{\"name\":\"临高县\",\"value\":419},{\"name\":\"陵水黎族自治县\",\"value\":872},{\"name\":\"屯昌县\",\"value\":935},{\"name\":\"定安县\",\"value\":731},{\"name\":\"保亭黎族苗族自治县\",\"value\":452},{\"name\":\"五指山市\",\"value\":948}]}", selectedProvince];
        NSData *jsonData = [seriesJson dataUsingEncoding:NSUTF8StringEncoding];
        NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
        option.series = [[NSMutableArray alloc] initWithArray:option.series];
        PYSeries *series = [RMMapper objectWithClass:[PYMapSeries class] fromDictionary:jsonDic];
        if (option.series.count > 1) {
            [option.series replaceObjectAtIndex:1 withObject:series];
        } else {
            [option.series addObject:series];
        }
        option.legend = [[PYLegend alloc] init];
        option.legend.x = @"right";
        option.legend.data = @[@"随机数"];
        option.dataRange = [[PYDataRange alloc] init];
        option.dataRange.orient = @"horizontal";
        option.dataRange.x = @"right";
        option.dataRange.min = @0;
        option.dataRange.max = @1000;
        option.dataRange.color = [[NSMutableArray alloc] initWithArray:@[@"orange", @"yellow"]];
        option.dataRange.text = [[NSMutableArray alloc] initWithArray:@[@"高", @"低"]];
        option.dataRange.splitNumber = @0;
        [weakSelf.yEchartView refreshEchartsWithOption:option];
    }];
}

/**
 *  地图标线1
 */
- (void)showMapMarkLineDemo {
    NSString *json = @"{\"color\":[\"#ff7f50\",\"#32cd32\",\"#6495ed\"],\"title\":{\"text\":\"南航主要航空线路\",\"x\":\"center\"},\"tooltip\":{\"trigger\":\"item\",\"formatter\":\"{b}\"},\"legend\":{\"orient\":\"vertical\",\"x\":\"left\",\"data\":[\"北京\",\"上海\",\"广州\"]},\"toolbox\":{\"show\":true,\"orient\":\"vertical\",\"x\":\"right\",\"y\":\"center\",\"feature\":{\"mark\":{\"show\":true},\"dataView\":{\"show\":true,\"readOnly\":false},\"restore\":{\"show\":true},\"saveAsImage\":{\"show\":true}}},\"series\":[{\"name\":\"北京\",\"type\":\"map\",\"mapType\":\"china\",\"roam\":true,\"hoverable\":false,\"data\":[],\"markLine\":{\"itemStyle\":{\"normal\":{\"borderWidth\":1}},\"data\":[[{\"name\":\"北京\"},{\"name\":\"包头\"}],[{\"name\":\"北京\"},{\"name\":\"北海\"}],[{\"name\":\"北京\"},{\"name\":\"广州\"}],[{\"name\":\"北京\"},{\"name\":\"郑州\"}],[{\"name\":\"北京\"},{\"name\":\"长春\"}],[{\"name\":\"北京\"},{\"name\":\"长治\"}],[{\"name\":\"北京\"},{\"name\":\"重庆\"}],[{\"name\":\"北京\"},{\"name\":\"长沙\"}],[{\"name\":\"北京\"},{\"name\":\"成都\"}],[{\"name\":\"北京\"},{\"name\":\"常州\"}],[{\"name\":\"北京\"},{\"name\":\"丹东\"}],[{\"name\":\"北京\"},{\"name\":\"大连\"}],[{\"name\":\"北京\"},{\"name\":\"东营\"}],[{\"name\":\"北京\"},{\"name\":\"延安\"}],[{\"name\":\"北京\"},{\"name\":\"福州\"}],[{\"name\":\"北京\"},{\"name\":\"海口\"}],[{\"name\":\"北京\"},{\"name\":\"呼和浩特\"}],[{\"name\":\"北京\"},{\"name\":\"合肥\"}],[{\"name\":\"北京\"},{\"name\":\"杭州\"}],[{\"name\":\"北京\"},{\"name\":\"哈尔滨\"}],[{\"name\":\"北京\"},{\"name\":\"舟山\"}],[{\"name\":\"北京\"},{\"name\":\"银川\"}],[{\"name\":\"北京\"},{\"name\":\"衢州\"}],[{\"name\":\"北京\"},{\"name\":\"南昌\"}],[{\"name\":\"北京\"},{\"name\":\"昆明\"}],[{\"name\":\"北京\"},{\"name\":\"贵阳\"}],[{\"name\":\"北京\"},{\"name\":\"兰州\"}],[{\"name\":\"北京\"},{\"name\":\"拉萨\"}],[{\"name\":\"北京\"},{\"name\":\"连云港\"}],[{\"name\":\"北京\"},{\"name\":\"临沂\"}],[{\"name\":\"北京\"},{\"name\":\"柳州\"}],[{\"name\":\"北京\"},{\"name\":\"宁波\"}],[{\"name\":\"北京\"},{\"name\":\"南京\"}],[{\"name\":\"北京\"},{\"name\":\"南宁\"}],[{\"name\":\"北京\"},{\"name\":\"南通\"}],[{\"name\":\"北京\"},{\"name\":\"上海\"}],[{\"name\":\"北京\"},{\"name\":\"沈阳\"}],[{\"name\":\"北京\"},{\"name\":\"西安\"}],[{\"name\":\"北京\"},{\"name\":\"汕头\"}],[{\"name\":\"北京\"},{\"name\":\"深圳\"}],[{\"name\":\"北京\"},{\"name\":\"青岛\"}],[{\"name\":\"北京\"},{\"name\":\"济南\"}],[{\"name\":\"北京\"},{\"name\":\"太原\"}],[{\"name\":\"北京\"},{\"name\":\"乌鲁木齐\"}],[{\"name\":\"北京\"},{\"name\":\"潍坊\"}],[{\"name\":\"北京\"},{\"name\":\"威海\"}],[{\"name\":\"北京\"},{\"name\":\"温州\"}],[{\"name\":\"北京\"},{\"name\":\"武汉\"}],[{\"name\":\"北京\"},{\"name\":\"无锡\"}],[{\"name\":\"北京\"},{\"name\":\"厦门\"}],[{\"name\":\"北京\"},{\"name\":\"西宁\"}],[{\"name\":\"北京\"},{\"name\":\"徐州\"}],[{\"name\":\"北京\"},{\"name\":\"烟台\"}],[{\"name\":\"北京\"},{\"name\":\"盐城\"}],[{\"name\":\"北京\"},{\"name\":\"珠海\"}]]},\"geoCoord\":{\"上海\":[121.4648,31.2891],\"东莞\":[113.8953,22.901],\"东营\":[118.7073,37.5513],\"中山\":[113.4229,22.478],\"临汾\":[111.4783,36.1615],\"临沂\":[118.3118,35.2936],\"丹东\":[124.541,40.4242],\"丽水\":[119.5642,28.1854],\"乌鲁木齐\":[87.9236,43.5883],\"佛山\":[112.8955,23.1097],\"保定\":[115.0488,39.0948],\"兰州\":[103.5901,36.3043],\"包头\":[110.3467,41.4899],\"北京\":[116.4551,40.2539],\"北海\":[109.314,21.6211],\"南京\":[118.8062,31.9208],\"南宁\":[108.479,23.1152],\"南昌\":[116.0046,28.6633],\"南通\":[121.1023,32.1625],\"厦门\":[118.1689,24.6478],\"台州\":[121.1353,28.6688],\"合肥\":[117.29,32.0581],\"呼和浩特\":[111.4124,40.4901],\"咸阳\":[108.4131,34.8706],\"哈尔滨\":[127.9688,45.368],\"唐山\":[118.4766,39.6826],\"嘉兴\":[120.9155,30.6354],\"大同\":[113.7854,39.8035],\"大连\":[122.2229,39.4409],\"天津\":[117.4219,39.4189],\"太原\":[112.3352,37.9413],\"威海\":[121.9482,37.1393],\"宁波\":[121.5967,29.6466],\"宝鸡\":[107.1826,34.3433],\"宿迁\":[118.5535,33.7775],\"常州\":[119.4543,31.5582],\"广州\":[113.5107,23.2196],\"廊坊\":[116.521,39.0509],\"延安\":[109.1052,36.4252],\"张家口\":[115.1477,40.8527],\"徐州\":[117.5208,34.3268],\"德州\":[116.6858,37.2107],\"惠州\":[114.6204,23.1647],\"成都\":[103.9526,30.7617],\"扬州\":[119.4653,32.8162],\"承德\":[117.5757,41.4075],\"拉萨\":[91.1865,30.1465],\"无锡\":[120.3442,31.5527],\"日照\":[119.2786,35.5023],\"昆明\":[102.9199,25.4663],\"杭州\":[119.5313,29.8773],\"枣庄\":[117.323,34.8926],\"柳州\":[109.3799,24.9774],\"株洲\":[113.5327,27.0319],\"武汉\":[114.3896,30.6628],\"汕头\":[117.1692,23.3405],\"江门\":[112.6318,22.1484],\"沈阳\":[123.1238,42.1216],\"沧州\":[116.8286,38.2104],\"河源\":[114.917,23.9722],\"泉州\":[118.3228,25.1147],\"泰安\":[117.0264,36.0516],\"泰州\":[120.0586,32.5525],\"济南\":[117.1582,36.8701],\"济宁\":[116.8286,35.3375],\"海口\":[110.3893,19.8516],\"淄博\":[118.0371,36.6064],\"淮安\":[118.927,33.4039],\"深圳\":[114.5435,22.5439],\"清远\":[112.9175,24.3292],\"温州\":[120.498,27.8119],\"渭南\":[109.7864,35.0299],\"湖州\":[119.8608,30.7782],\"湘潭\":[112.5439,27.7075],\"滨州\":[117.8174,37.4963],\"潍坊\":[119.0918,36.524],\"烟台\":[120.7397,37.5128],\"玉溪\":[101.9312,23.8898],\"珠海\":[113.7305,22.1155],\"盐城\":[120.2234,33.5577],\"盘锦\":[121.9482,41.0449],\"石家庄\":[114.4995,38.1006],\"福州\":[119.4543,25.9222],\"秦皇岛\":[119.2126,40.0232],\"绍兴\":[120.564,29.7565],\"聊城\":[115.9167,36.4032],\"肇庆\":[112.1265,23.5822],\"舟山\":[122.2559,30.2234],\"苏州\":[120.6519,31.3989],\"莱芜\":[117.6526,36.2714],\"菏泽\":[115.6201,35.2057],\"营口\":[122.4316,40.4297],\"葫芦岛\":[120.1575,40.578],\"衡水\":[115.8838,37.7161],\"衢州\":[118.6853,28.8666],\"西宁\":[101.4038,36.8207],\"西安\":[109.1162,34.2004],\"贵阳\":[106.6992,26.7682],\"连云港\":[119.1248,34.552],\"邢台\":[114.8071,37.2821],\"邯郸\":[114.4775,36.535],\"郑州\":[113.4668,34.6234],\"鄂尔多斯\":[108.9734,39.2487],\"重庆\":[107.7539,30.1904],\"金华\":[120.0037,29.1028],\"铜川\":[109.0393,35.1947],\"银川\":[106.3586,38.1775],\"镇江\":[119.4763,31.9702],\"长春\":[125.8154,44.2584],\"长沙\":[113.0823,28.2568],\"长治\":[112.8625,36.4746],\"阳泉\":[113.4778,38.0951],\"青岛\":[120.4651,36.3373],\"韶关\":[113.7964,24.7028]}},{\"name\":\"上海\",\"type\":\"map\",\"mapType\":\"china\",\"data\":[],\"markLine\":{\"itemStyle\":{\"normal\":{\"borderWidth\":1}},\"data\":[[{\"name\":\"上海\"},{\"name\":\"包头\"}],[{\"name\":\"上海\"},{\"name\":\"北海\"}],[{\"name\":\"上海\"},{\"name\":\"广州\"}],[{\"name\":\"上海\"},{\"name\":\"郑州\"}],[{\"name\":\"上海\"},{\"name\":\"长春\"}],[{\"name\":\"上海\"},{\"name\":\"重庆\"}],[{\"name\":\"上海\"},{\"name\":\"长沙\"}],[{\"name\":\"上海\"},{\"name\":\"成都\"}],[{\"name\":\"上海\"},{\"name\":\"丹东\"}],[{\"name\":\"上海\"},{\"name\":\"大连\"}],[{\"name\":\"上海\"},{\"name\":\"福州\"}],[{\"name\":\"上海\"},{\"name\":\"海口\"}],[{\"name\":\"上海\"},{\"name\":\"呼和浩特\"}],[{\"name\":\"上海\"},{\"name\":\"合肥\"}],[{\"name\":\"上海\"},{\"name\":\"哈尔滨\"}],[{\"name\":\"上海\"},{\"name\":\"舟山\"}],[{\"name\":\"上海\"},{\"name\":\"银川\"}],[{\"name\":\"上海\"},{\"name\":\"南昌\"}],[{\"name\":\"上海\"},{\"name\":\"昆明\"}],[{\"name\":\"上海\"},{\"name\":\"贵阳\"}],[{\"name\":\"上海\"},{\"name\":\"兰州\"}],[{\"name\":\"上海\"},{\"name\":\"拉萨\"}],[{\"name\":\"上海\"},{\"name\":\"连云港\"}],[{\"name\":\"上海\"},{\"name\":\"临沂\"}],[{\"name\":\"上海\"},{\"name\":\"柳州\"}],[{\"name\":\"上海\"},{\"name\":\"宁波\"}],[{\"name\":\"上海\"},{\"name\":\"南宁\"}],[{\"name\":\"上海\"},{\"name\":\"北京\"}],[{\"name\":\"上海\"},{\"name\":\"沈阳\"}],[{\"name\":\"上海\"},{\"name\":\"秦皇岛\"}],[{\"name\":\"上海\"},{\"name\":\"西安\"}],[{\"name\":\"上海\"},{\"name\":\"石家庄\"}],[{\"name\":\"上海\"},{\"name\":\"汕头\"}],[{\"name\":\"上海\"},{\"name\":\"深圳\"}],[{\"name\":\"上海\"},{\"name\":\"青岛\"}],[{\"name\":\"上海\"},{\"name\":\"济南\"}],[{\"name\":\"上海\"},{\"name\":\"天津\"}],[{\"name\":\"上海\"},{\"name\":\"太原\"}],[{\"name\":\"上海\"},{\"name\":\"乌鲁木齐\"}],[{\"name\":\"上海\"},{\"name\":\"潍坊\"}],[{\"name\":\"上海\"},{\"name\":\"威海\"}],[{\"name\":\"上海\"},{\"name\":\"温州\"}],[{\"name\":\"上海\"},{\"name\":\"武汉\"}],[{\"name\":\"上海\"},{\"name\":\"厦门\"}],[{\"name\":\"上海\"},{\"name\":\"西宁\"}],[{\"name\":\"上海\"},{\"name\":\"徐州\"}],[{\"name\":\"上海\"},{\"name\":\"烟台\"}],[{\"name\":\"上海\"},{\"name\":\"珠海\"}]]}},{\"name\":\"广州\",\"type\":\"map\",\"mapType\":\"china\",\"data\":[],\"markLine\":{\"itemStyle\":{\"normal\":{\"borderWidth\":1}},\"data\":[[{\"name\":\"广州\"},{\"name\":\"北海\"}],[{\"name\":\"广州\"},{\"name\":\"郑州\"}],[{\"name\":\"广州\"},{\"name\":\"长春\"}],[{\"name\":\"广州\"},{\"name\":\"重庆\"}],[{\"name\":\"广州\"},{\"name\":\"长沙\"}],[{\"name\":\"广州\"},{\"name\":\"成都\"}],[{\"name\":\"广州\"},{\"name\":\"常州\"}],[{\"name\":\"广州\"},{\"name\":\"大连\"}],[{\"name\":\"广州\"},{\"name\":\"福州\"}],[{\"name\":\"广州\"},{\"name\":\"海口\"}],[{\"name\":\"广州\"},{\"name\":\"呼和浩特\"}],[{\"name\":\"广州\"},{\"name\":\"合肥\"}],[{\"name\":\"广州\"},{\"name\":\"杭州\"}],[{\"name\":\"广州\"},{\"name\":\"哈尔滨\"}],[{\"name\":\"广州\"},{\"name\":\"舟山\"}],[{\"name\":\"广州\"},{\"name\":\"银川\"}],[{\"name\":\"广州\"},{\"name\":\"南昌\"}],[{\"name\":\"广州\"},{\"name\":\"昆明\"}],[{\"name\":\"广州\"},{\"name\":\"贵阳\"}],[{\"name\":\"广州\"},{\"name\":\"兰州\"}],[{\"name\":\"广州\"},{\"name\":\"拉萨\"}],[{\"name\":\"广州\"},{\"name\":\"连云港\"}],[{\"name\":\"广州\"},{\"name\":\"临沂\"}],[{\"name\":\"广州\"},{\"name\":\"柳州\"}],[{\"name\":\"广州\"},{\"name\":\"宁波\"}],[{\"name\":\"广州\"},{\"name\":\"南京\"}],[{\"name\":\"广州\"},{\"name\":\"南宁\"}],[{\"name\":\"广州\"},{\"name\":\"南通\"}],[{\"name\":\"广州\"},{\"name\":\"北京\"}],[{\"name\":\"广州\"},{\"name\":\"上海\"}],[{\"name\":\"广州\"},{\"name\":\"沈阳\"}],[{\"name\":\"广州\"},{\"name\":\"西安\"}],[{\"name\":\"广州\"},{\"name\":\"石家庄\"}],[{\"name\":\"广州\"},{\"name\":\"汕头\"}],[{\"name\":\"广州\"},{\"name\":\"青岛\"}],[{\"name\":\"广州\"},{\"name\":\"济南\"}],[{\"name\":\"广州\"},{\"name\":\"天津\"}],[{\"name\":\"广州\"},{\"name\":\"太原\"}],[{\"name\":\"广州\"},{\"name\":\"乌鲁木齐\"}],[{\"name\":\"广州\"},{\"name\":\"温州\"}],[{\"name\":\"广州\"},{\"name\":\"武汉\"}],[{\"name\":\"广州\"},{\"name\":\"无锡\"}],[{\"name\":\"广州\"},{\"name\":\"厦门\"}],[{\"name\":\"广州\"},{\"name\":\"西宁\"}],[{\"name\":\"广州\"},{\"name\":\"徐州\"}],[{\"name\":\"广州\"},{\"name\":\"烟台\"}],[{\"name\":\"广州\"},{\"name\":\"盐城\"}]]}}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  地图标注1
 */
- (void)showMapMarkPointDemo {
    NSString *json = @"{\"title\":{\"text\":\"全国主要城市空气质量（pm2.5）\",\"subtext\":\"data from PM25.in\",\"sublink\":\"http://www.pm25.in\",\"x\":\"center\"},\"tooltip\":{\"trigger\":\"item\"},\"legend\":{\"orient\":\"vertical\",\"x\":\"left\",\"data\":[\"pm2.5\"]},\"dataRange\":{\"min\":0,\"max\":500,\"calculable\":true,\"color\":[\"maroon\",\"purple\",\"red\",\"orange\",\"yellow\",\"lightgreen\"]},\"toolbox\":{\"show\":true,\"orient\":\"vertical\",\"x\":\"right\",\"y\":\"center\",\"feature\":{\"mark\":{\"show\":true},\"dataView\":{\"show\":true,\"readOnly\":false},\"restore\":{\"show\":true},\"saveAsImage\":{\"show\":true}}},\"series\":[{\"name\":\"pm2.5\",\"type\":\"map\",\"mapType\":\"china\",\"hoverable\":false,\"roam\":true,\"data\":[],\"markPoint\":{\"symbolSize\":5,\"itemStyle\":{\"normal\":{\"borderColor\":\"#87cefa\",\"borderWidth\":1,\"label\":{\"show\":false}},\"emphasis\":{\"borderColor\":\"#1e90ff\",\"borderWidth\":5,\"label\":{\"show\":false}}},\"data\":[{\"name\":\"海门\",\"value\":9},{\"name\":\"鄂尔多斯\",\"value\":12},{\"name\":\"招远\",\"value\":12},{\"name\":\"舟山\",\"value\":12},{\"name\":\"齐齐哈尔\",\"value\":14},{\"name\":\"盐城\",\"value\":15},{\"name\":\"赤峰\",\"value\":16},{\"name\":\"青岛\",\"value\":18},{\"name\":\"乳山\",\"value\":18},{\"name\":\"金昌\",\"value\":19},{\"name\":\"泉州\",\"value\":21},{\"name\":\"莱西\",\"value\":21},{\"name\":\"日照\",\"value\":21},{\"name\":\"胶南\",\"value\":22},{\"name\":\"南通\",\"value\":23},{\"name\":\"拉萨\",\"value\":24},{\"name\":\"云浮\",\"value\":24},{\"name\":\"梅州\",\"value\":25},{\"name\":\"文登\",\"value\":25},{\"name\":\"上海\",\"value\":25},{\"name\":\"攀枝花\",\"value\":25},{\"name\":\"威海\",\"value\":25},{\"name\":\"承德\",\"value\":25},{\"name\":\"厦门\",\"value\":26},{\"name\":\"汕尾\",\"value\":26},{\"name\":\"潮州\",\"value\":26},{\"name\":\"丹东\",\"value\":27},{\"name\":\"太仓\",\"value\":27},{\"name\":\"曲靖\",\"value\":27},{\"name\":\"烟台\",\"value\":28},{\"name\":\"福州\",\"value\":29},{\"name\":\"瓦房店\",\"value\":30},{\"name\":\"即墨\",\"value\":30},{\"name\":\"抚顺\",\"value\":31},{\"name\":\"玉溪\",\"value\":31},{\"name\":\"张家口\",\"value\":31},{\"name\":\"阳泉\",\"value\":31},{\"name\":\"莱州\",\"value\":32},{\"name\":\"湖州\",\"value\":32},{\"name\":\"汕头\",\"value\":32},{\"name\":\"昆山\",\"value\":33},{\"name\":\"宁波\",\"value\":33},{\"name\":\"湛江\",\"value\":33},{\"name\":\"揭阳\",\"value\":34},{\"name\":\"荣成\",\"value\":34},{\"name\":\"连云港\",\"value\":35},{\"name\":\"葫芦岛\",\"value\":35},{\"name\":\"常熟\",\"value\":36},{\"name\":\"东莞\",\"value\":36},{\"name\":\"河源\",\"value\":36},{\"name\":\"淮安\",\"value\":36},{\"name\":\"泰州\",\"value\":36},{\"name\":\"南宁\",\"value\":37},{\"name\":\"营口\",\"value\":37},{\"name\":\"惠州\",\"value\":37},{\"name\":\"江阴\",\"value\":37},{\"name\":\"蓬莱\",\"value\":37},{\"name\":\"韶关\",\"value\":38},{\"name\":\"嘉峪关\",\"value\":38},{\"name\":\"广州\",\"value\":38},{\"name\":\"延安\",\"value\":38},{\"name\":\"太原\",\"value\":39},{\"name\":\"清远\",\"value\":39},{\"name\":\"中山\",\"value\":39},{\"name\":\"昆明\",\"value\":39},{\"name\":\"寿光\",\"value\":40},{\"name\":\"盘锦\",\"value\":40},{\"name\":\"长治\",\"value\":41},{\"name\":\"深圳\",\"value\":41},{\"name\":\"珠海\",\"value\":42},{\"name\":\"宿迁\",\"value\":43},{\"name\":\"咸阳\",\"value\":43},{\"name\":\"铜川\",\"value\":44},{\"name\":\"平度\",\"value\":44},{\"name\":\"佛山\",\"value\":44},{\"name\":\"海口\",\"value\":44},{\"name\":\"江门\",\"value\":45},{\"name\":\"章丘\",\"value\":45},{\"name\":\"肇庆\",\"value\":46},{\"name\":\"大连\",\"value\":47},{\"name\":\"临汾\",\"value\":47},{\"name\":\"吴江\",\"value\":47},{\"name\":\"石嘴山\",\"value\":49},{\"name\":\"沈阳\",\"value\":50},{\"name\":\"苏州\",\"value\":50},{\"name\":\"茂名\",\"value\":50},{\"name\":\"嘉兴\",\"value\":51},{\"name\":\"长春\",\"value\":51},{\"name\":\"胶州\",\"value\":52},{\"name\":\"银川\",\"value\":52},{\"name\":\"张家港\",\"value\":52},{\"name\":\"三门峡\",\"value\":53},{\"name\":\"锦州\",\"value\":54},{\"name\":\"南昌\",\"value\":54},{\"name\":\"柳州\",\"value\":54},{\"name\":\"三亚\",\"value\":54},{\"name\":\"自贡\",\"value\":56},{\"name\":\"吉林\",\"value\":56},{\"name\":\"阳江\",\"value\":57},{\"name\":\"泸州\",\"value\":57},{\"name\":\"西宁\",\"value\":57},{\"name\":\"宜宾\",\"value\":58},{\"name\":\"呼和浩特\",\"value\":58},{\"name\":\"成都\",\"value\":58},{\"name\":\"大同\",\"value\":58},{\"name\":\"镇江\",\"value\":59},{\"name\":\"桂林\",\"value\":59},{\"name\":\"张家界\",\"value\":59},{\"name\":\"宜兴\",\"value\":59},{\"name\":\"北海\",\"value\":60},{\"name\":\"西安\",\"value\":61},{\"name\":\"金坛\",\"value\":62},{\"name\":\"东营\",\"value\":62},{\"name\":\"牡丹江\",\"value\":63},{\"name\":\"遵义\",\"value\":63},{\"name\":\"绍兴\",\"value\":63},{\"name\":\"扬州\",\"value\":64},{\"name\":\"常州\",\"value\":64},{\"name\":\"潍坊\",\"value\":65},{\"name\":\"重庆\",\"value\":66},{\"name\":\"台州\",\"value\":67},{\"name\":\"南京\",\"value\":67},{\"name\":\"滨州\",\"value\":70},{\"name\":\"贵阳\",\"value\":71},{\"name\":\"无锡\",\"value\":71},{\"name\":\"本溪\",\"value\":71},{\"name\":\"克拉玛依\",\"value\":72},{\"name\":\"渭南\",\"value\":72},{\"name\":\"马鞍山\",\"value\":72},{\"name\":\"宝鸡\",\"value\":72},{\"name\":\"焦作\",\"value\":75},{\"name\":\"句容\",\"value\":75},{\"name\":\"北京\",\"value\":79},{\"name\":\"徐州\",\"value\":79},{\"name\":\"衡水\",\"value\":80},{\"name\":\"包头\",\"value\":80},{\"name\":\"绵阳\",\"value\":80},{\"name\":\"乌鲁木齐\",\"value\":84},{\"name\":\"枣庄\",\"value\":84},{\"name\":\"杭州\",\"value\":84},{\"name\":\"淄博\",\"value\":85},{\"name\":\"鞍山\",\"value\":86},{\"name\":\"溧阳\",\"value\":86},{\"name\":\"库尔勒\",\"value\":86},{\"name\":\"安阳\",\"value\":90},{\"name\":\"开封\",\"value\":90},{\"name\":\"济南\",\"value\":92},{\"name\":\"德阳\",\"value\":93},{\"name\":\"温州\",\"value\":95},{\"name\":\"九江\",\"value\":96},{\"name\":\"邯郸\",\"value\":98},{\"name\":\"临安\",\"value\":99},{\"name\":\"兰州\",\"value\":99},{\"name\":\"沧州\",\"value\":100},{\"name\":\"临沂\",\"value\":103},{\"name\":\"南充\",\"value\":104},{\"name\":\"天津\",\"value\":105},{\"name\":\"富阳\",\"value\":106},{\"name\":\"泰安\",\"value\":112},{\"name\":\"诸暨\",\"value\":112},{\"name\":\"郑州\",\"value\":113},{\"name\":\"哈尔滨\",\"value\":114},{\"name\":\"聊城\",\"value\":116},{\"name\":\"芜湖\",\"value\":117},{\"name\":\"唐山\",\"value\":119},{\"name\":\"平顶山\",\"value\":119},{\"name\":\"邢台\",\"value\":119},{\"name\":\"德州\",\"value\":120},{\"name\":\"济宁\",\"value\":120},{\"name\":\"荆州\",\"value\":127},{\"name\":\"宜昌\",\"value\":130},{\"name\":\"义乌\",\"value\":132},{\"name\":\"丽水\",\"value\":133},{\"name\":\"洛阳\",\"value\":134},{\"name\":\"秦皇岛\",\"value\":136},{\"name\":\"株洲\",\"value\":143},{\"name\":\"石家庄\",\"value\":147},{\"name\":\"莱芜\",\"value\":148},{\"name\":\"常德\",\"value\":152},{\"name\":\"保定\",\"value\":153},{\"name\":\"湘潭\",\"value\":154},{\"name\":\"金华\",\"value\":157},{\"name\":\"岳阳\",\"value\":169},{\"name\":\"长沙\",\"value\":175},{\"name\":\"衢州\",\"value\":177},{\"name\":\"廊坊\",\"value\":193},{\"name\":\"菏泽\",\"value\":194},{\"name\":\"合肥\",\"value\":229},{\"name\":\"武汉\",\"value\":273},{\"name\":\"大庆\",\"value\":279}]},\"geoCoord\":{\"海门\":[121.15,31.89],\"鄂尔多斯\":[109.781327,39.608266],\"招远\":[120.38,37.35],\"舟山\":[122.207216,29.985295],\"齐齐哈尔\":[123.97,47.33],\"盐城\":[120.13,33.38],\"赤峰\":[118.87,42.28],\"青岛\":[120.33,36.07],\"乳山\":[121.52,36.89],\"金昌\":[102.188043,38.520089],\"泉州\":[118.58,24.93],\"莱西\":[120.53,36.86],\"日照\":[119.46,35.42],\"胶南\":[119.97,35.88],\"南通\":[121.05,32.08],\"拉萨\":[91.11,29.97],\"云浮\":[112.02,22.93],\"梅州\":[116.1,24.55],\"文登\":[122.05,37.2],\"上海\":[121.48,31.22],\"攀枝花\":[101.718637,26.582347],\"威海\":[122.1,37.5],\"承德\":[117.93,40.97],\"厦门\":[118.1,24.46],\"汕尾\":[115.375279,22.786211],\"潮州\":[116.63,23.68],\"丹东\":[124.37,40.13],\"太仓\":[121.1,31.45],\"曲靖\":[103.79,25.51],\"烟台\":[121.39,37.52],\"福州\":[119.3,26.08],\"瓦房店\":[121.979603,39.627114],\"即墨\":[120.45,36.38],\"抚顺\":[123.97,41.97],\"玉溪\":[102.52,24.35],\"张家口\":[114.87,40.82],\"阳泉\":[113.57,37.85],\"莱州\":[119.942327,37.177017],\"湖州\":[120.1,30.86],\"汕头\":[116.69,23.39],\"昆山\":[120.95,31.39],\"宁波\":[121.56,29.86],\"湛江\":[110.359377,21.270708],\"揭阳\":[116.35,23.55],\"荣成\":[122.41,37.16],\"连云港\":[119.16,34.59],\"葫芦岛\":[120.836932,40.711052],\"常熟\":[120.74,31.64],\"东莞\":[113.75,23.04],\"河源\":[114.68,23.73],\"淮安\":[119.15,33.5],\"泰州\":[119.9,32.49],\"南宁\":[108.33,22.84],\"营口\":[122.18,40.65],\"惠州\":[114.4,23.09],\"江阴\":[120.26,31.91],\"蓬莱\":[120.75,37.8],\"韶关\":[113.62,24.84],\"嘉峪关\":[98.289152,39.77313],\"广州\":[113.23,23.16],\"延安\":[109.47,36.6],\"太原\":[112.53,37.87],\"清远\":[113.01,23.7],\"中山\":[113.38,22.52],\"昆明\":[102.73,25.04],\"寿光\":[118.73,36.86],\"盘锦\":[122.070714,41.119997],\"长治\":[113.08,36.18],\"深圳\":[114.07,22.62],\"珠海\":[113.52,22.3],\"宿迁\":[118.3,33.96],\"咸阳\":[108.72,34.36],\"铜川\":[109.11,35.09],\"平度\":[119.97,36.77],\"佛山\":[113.11,23.05],\"海口\":[110.35,20.02],\"江门\":[113.06,22.61],\"章丘\":[117.53,36.72],\"肇庆\":[112.44,23.05],\"大连\":[121.62,38.92],\"临汾\":[111.5,36.08],\"吴江\":[120.63,31.16],\"石嘴山\":[106.39,39.04],\"沈阳\":[123.38,41.8],\"苏州\":[120.62,31.32],\"茂名\":[110.88,21.68],\"嘉兴\":[120.76,30.77],\"长春\":[125.35,43.88],\"胶州\":[120.03336,36.264622],\"银川\":[106.27,38.47],\"张家港\":[120.555821,31.875428],\"三门峡\":[111.19,34.76],\"锦州\":[121.15,41.13],\"南昌\":[115.89,28.68],\"柳州\":[109.4,24.33],\"三亚\":[109.511909,18.252847],\"自贡\":[104.778442,29.33903],\"吉林\":[126.57,43.87],\"阳江\":[111.95,21.85],\"泸州\":[105.39,28.91],\"西宁\":[101.74,36.56],\"宜宾\":[104.56,29.77],\"呼和浩特\":[111.65,40.82],\"成都\":[104.06,30.67],\"大同\":[113.3,40.12],\"镇江\":[119.44,32.2],\"桂林\":[110.28,25.29],\"张家界\":[110.479191,29.117096],\"宜兴\":[119.82,31.36],\"北海\":[109.12,21.49],\"西安\":[108.95,34.27],\"金坛\":[119.56,31.74],\"东营\":[118.49,37.46],\"牡丹江\":[129.58,44.6],\"遵义\":[106.9,27.7],\"绍兴\":[120.58,30.01],\"扬州\":[119.42,32.39],\"常州\":[119.95,31.79],\"潍坊\":[119.1,36.62],\"重庆\":[106.54,29.59],\"台州\":[121.420757,28.656386],\"南京\":[118.78,32.04],\"滨州\":[118.03,37.36],\"贵阳\":[106.71,26.57],\"无锡\":[120.29,31.59],\"本溪\":[123.73,41.3],\"克拉玛依\":[84.77,45.59],\"渭南\":[109.5,34.52],\"马鞍山\":[118.48,31.56],\"宝鸡\":[107.15,34.38],\"焦作\":[113.21,35.24],\"句容\":[119.16,31.95],\"北京\":[116.46,39.92],\"徐州\":[117.2,34.26],\"衡水\":[115.72,37.72],\"包头\":[110,40.58],\"绵阳\":[104.73,31.48],\"乌鲁木齐\":[87.68,43.77],\"枣庄\":[117.57,34.86],\"杭州\":[120.19,30.26],\"淄博\":[118.05,36.78],\"鞍山\":[122.85,41.12],\"溧阳\":[119.48,31.43],\"库尔勒\":[86.06,41.68],\"安阳\":[114.35,36.1],\"开封\":[114.35,34.79],\"济南\":[117,36.65],\"德阳\":[104.37,31.13],\"温州\":[120.65,28.01],\"九江\":[115.97,29.71],\"邯郸\":[114.47,36.6],\"临安\":[119.72,30.23],\"兰州\":[103.73,36.03],\"沧州\":[116.83,38.33],\"临沂\":[118.35,35.05],\"南充\":[106.110698,30.837793],\"天津\":[117.2,39.13],\"富阳\":[119.95,30.07],\"泰安\":[117.13,36.18],\"诸暨\":[120.23,29.71],\"郑州\":[113.65,34.76],\"哈尔滨\":[126.63,45.75],\"聊城\":[115.97,36.45],\"芜湖\":[118.38,31.33],\"唐山\":[118.02,39.63],\"平顶山\":[113.29,33.75],\"邢台\":[114.48,37.05],\"德州\":[116.29,37.45],\"济宁\":[116.59,35.38],\"荆州\":[112.239741,30.335165],\"宜昌\":[111.3,30.7],\"义乌\":[120.06,29.32],\"丽水\":[119.92,28.45],\"洛阳\":[112.44,34.7],\"秦皇岛\":[119.57,39.95],\"株洲\":[113.16,27.83],\"石家庄\":[114.48,38.03],\"莱芜\":[117.67,36.19],\"常德\":[111.69,29.05],\"保定\":[115.48,38.85],\"湘潭\":[112.91,27.87],\"金华\":[119.64,29.12],\"岳阳\":[113.09,29.37],\"长沙\":[113,28.21],\"衢州\":[118.88,28.97],\"廊坊\":[116.7,39.53],\"菏泽\":[115.480656,35.23375],\"合肥\":[117.27,31.86],\"武汉\":[114.31,30.52],\"大庆\":[125.03,46.58]}},{\"name\":\"Top5\",\"type\":\"map\",\"mapType\":\"china\",\"data\":[],\"markPoint\":{\"symbol\":\"emptyCircle\",\"symbolSize\":\"(function (v){return 10 + v/100})\",\"effect\":{\"show\":true,\"shadowBlur\":0},\"itemStyle\":{\"normal\":{\"label\":{\"show\":false}}},\"data\":[{\"name\":\"廊坊\",\"value\":193},{\"name\":\"菏泽\",\"value\":194},{\"name\":\"合肥\",\"value\":229},{\"name\":\"武汉\",\"value\":273},{\"name\":\"大庆\",\"value\":279}]}}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  地图标线2
 */
- (void)showMapMarkLine2Demo {
    NSString *json = @"{\"backgroundColor\":\"#1b1b1b\",\"color\":[\"gold\",\"aqua\",\"lime\"],\"title\":{\"text\":\"模拟迁徙\",\"subtext\":\"数据纯属虚构\",\"x\":\"center\",\"textStyle\":{\"color\":\"#fff\"}},\"tooltip\":{\"trigger\":\"item\",\"formatter\":\"{b}\"},\"legend\":{\"orient\":\"vertical\",\"x\":\"left\",\"data\":[\"北京 Top10\",\"上海 Top10\",\"广州 Top10\"],\"selectedMode\":\"single\",\"selected\":{\"上海 Top10\":false,\"广州 Top10\":false},\"textStyle\":{\"color\":\"#fff\"}},\"toolbox\":{\"show\":true,\"orient\":\"vertical\",\"x\":\"right\",\"y\":\"center\",\"feature\":{\"mark\":{\"show\":true},\"dataView\":{\"show\":true,\"readOnly\":false},\"restore\":{\"show\":true},\"saveAsImage\":{\"show\":true}}},\"dataRange\":{\"min\":0,\"max\":100,\"calculable\":true,\"color\":[\"#ff3333\",\"orange\",\"yellow\",\"lime\",\"aqua\"],\"textStyle\":{\"color\":\"#fff\"}},\"series\":[{\"name\":\"全国\",\"type\":\"map\",\"roam\":true,\"hoverable\":false,\"mapType\":\"china\",\"itemStyle\":{\"normal\":{\"borderColor\":\"rgba(100,149,237,1)\",\"borderWidth\":0.5,\"areaStyle\":{\"color\":\"#1b1b1b\"}}},\"data\":[],\"markLine\":{\"smooth\":true,\"symbol\":[\"none\",\"circle\"],\"symbolSize\":1,\"itemStyle\":{\"normal\":{\"color\":\"#fff\",\"borderWidth\":1,\"borderColor\":\"rgba(30,144,255,0.5)\"}},\"data\":[[{\"name\":\"北京\"},{\"name\":\"包头\"}],[{\"name\":\"北京\"},{\"name\":\"北海\"}],[{\"name\":\"北京\"},{\"name\":\"广州\"}],[{\"name\":\"北京\"},{\"name\":\"郑州\"}],[{\"name\":\"北京\"},{\"name\":\"长春\"}],[{\"name\":\"北京\"},{\"name\":\"长治\"}],[{\"name\":\"北京\"},{\"name\":\"重庆\"}],[{\"name\":\"北京\"},{\"name\":\"长沙\"}],[{\"name\":\"北京\"},{\"name\":\"成都\"}],[{\"name\":\"北京\"},{\"name\":\"常州\"}],[{\"name\":\"北京\"},{\"name\":\"丹东\"}],[{\"name\":\"北京\"},{\"name\":\"大连\"}],[{\"name\":\"北京\"},{\"name\":\"东营\"}],[{\"name\":\"北京\"},{\"name\":\"延安\"}],[{\"name\":\"北京\"},{\"name\":\"福州\"}],[{\"name\":\"北京\"},{\"name\":\"海口\"}],[{\"name\":\"北京\"},{\"name\":\"呼和浩特\"}],[{\"name\":\"北京\"},{\"name\":\"合肥\"}],[{\"name\":\"北京\"},{\"name\":\"杭州\"}],[{\"name\":\"北京\"},{\"name\":\"哈尔滨\"}],[{\"name\":\"北京\"},{\"name\":\"舟山\"}],[{\"name\":\"北京\"},{\"name\":\"银川\"}],[{\"name\":\"北京\"},{\"name\":\"衢州\"}],[{\"name\":\"北京\"},{\"name\":\"南昌\"}],[{\"name\":\"北京\"},{\"name\":\"昆明\"}],[{\"name\":\"北京\"},{\"name\":\"贵阳\"}],[{\"name\":\"北京\"},{\"name\":\"兰州\"}],[{\"name\":\"北京\"},{\"name\":\"拉萨\"}],[{\"name\":\"北京\"},{\"name\":\"连云港\"}],[{\"name\":\"北京\"},{\"name\":\"临沂\"}],[{\"name\":\"北京\"},{\"name\":\"柳州\"}],[{\"name\":\"北京\"},{\"name\":\"宁波\"}],[{\"name\":\"北京\"},{\"name\":\"南京\"}],[{\"name\":\"北京\"},{\"name\":\"南宁\"}],[{\"name\":\"北京\"},{\"name\":\"南通\"}],[{\"name\":\"北京\"},{\"name\":\"上海\"}],[{\"name\":\"北京\"},{\"name\":\"沈阳\"}],[{\"name\":\"北京\"},{\"name\":\"西安\"}],[{\"name\":\"北京\"},{\"name\":\"汕头\"}],[{\"name\":\"北京\"},{\"name\":\"深圳\"}],[{\"name\":\"北京\"},{\"name\":\"青岛\"}],[{\"name\":\"北京\"},{\"name\":\"济南\"}],[{\"name\":\"北京\"},{\"name\":\"太原\"}],[{\"name\":\"北京\"},{\"name\":\"乌鲁木齐\"}],[{\"name\":\"北京\"},{\"name\":\"潍坊\"}],[{\"name\":\"北京\"},{\"name\":\"威海\"}],[{\"name\":\"北京\"},{\"name\":\"温州\"}],[{\"name\":\"北京\"},{\"name\":\"武汉\"}],[{\"name\":\"北京\"},{\"name\":\"无锡\"}],[{\"name\":\"北京\"},{\"name\":\"厦门\"}],[{\"name\":\"北京\"},{\"name\":\"西宁\"}],[{\"name\":\"北京\"},{\"name\":\"徐州\"}],[{\"name\":\"北京\"},{\"name\":\"烟台\"}],[{\"name\":\"北京\"},{\"name\":\"盐城\"}],[{\"name\":\"北京\"},{\"name\":\"珠海\"}],[{\"name\":\"上海\"},{\"name\":\"包头\"}],[{\"name\":\"上海\"},{\"name\":\"北海\"}],[{\"name\":\"上海\"},{\"name\":\"广州\"}],[{\"name\":\"上海\"},{\"name\":\"郑州\"}],[{\"name\":\"上海\"},{\"name\":\"长春\"}],[{\"name\":\"上海\"},{\"name\":\"重庆\"}],[{\"name\":\"上海\"},{\"name\":\"长沙\"}],[{\"name\":\"上海\"},{\"name\":\"成都\"}],[{\"name\":\"上海\"},{\"name\":\"丹东\"}],[{\"name\":\"上海\"},{\"name\":\"大连\"}],[{\"name\":\"上海\"},{\"name\":\"福州\"}],[{\"name\":\"上海\"},{\"name\":\"海口\"}],[{\"name\":\"上海\"},{\"name\":\"呼和浩特\"}],[{\"name\":\"上海\"},{\"name\":\"合肥\"}],[{\"name\":\"上海\"},{\"name\":\"哈尔滨\"}],[{\"name\":\"上海\"},{\"name\":\"舟山\"}],[{\"name\":\"上海\"},{\"name\":\"银川\"}],[{\"name\":\"上海\"},{\"name\":\"南昌\"}],[{\"name\":\"上海\"},{\"name\":\"昆明\"}],[{\"name\":\"上海\"},{\"name\":\"贵阳\"}],[{\"name\":\"上海\"},{\"name\":\"兰州\"}],[{\"name\":\"上海\"},{\"name\":\"拉萨\"}],[{\"name\":\"上海\"},{\"name\":\"连云港\"}],[{\"name\":\"上海\"},{\"name\":\"临沂\"}],[{\"name\":\"上海\"},{\"name\":\"柳州\"}],[{\"name\":\"上海\"},{\"name\":\"宁波\"}],[{\"name\":\"上海\"},{\"name\":\"南宁\"}],[{\"name\":\"上海\"},{\"name\":\"北京\"}],[{\"name\":\"上海\"},{\"name\":\"沈阳\"}],[{\"name\":\"上海\"},{\"name\":\"秦皇岛\"}],[{\"name\":\"上海\"},{\"name\":\"西安\"}],[{\"name\":\"上海\"},{\"name\":\"石家庄\"}],[{\"name\":\"上海\"},{\"name\":\"汕头\"}],[{\"name\":\"上海\"},{\"name\":\"深圳\"}],[{\"name\":\"上海\"},{\"name\":\"青岛\"}],[{\"name\":\"上海\"},{\"name\":\"济南\"}],[{\"name\":\"上海\"},{\"name\":\"天津\"}],[{\"name\":\"上海\"},{\"name\":\"太原\"}],[{\"name\":\"上海\"},{\"name\":\"乌鲁木齐\"}],[{\"name\":\"上海\"},{\"name\":\"潍坊\"}],[{\"name\":\"上海\"},{\"name\":\"威海\"}],[{\"name\":\"上海\"},{\"name\":\"温州\"}],[{\"name\":\"上海\"},{\"name\":\"武汉\"}],[{\"name\":\"上海\"},{\"name\":\"厦门\"}],[{\"name\":\"上海\"},{\"name\":\"西宁\"}],[{\"name\":\"上海\"},{\"name\":\"徐州\"}],[{\"name\":\"上海\"},{\"name\":\"烟台\"}],[{\"name\":\"上海\"},{\"name\":\"珠海\"}],[{\"name\":\"广州\"},{\"name\":\"北海\"}],[{\"name\":\"广州\"},{\"name\":\"郑州\"}],[{\"name\":\"广州\"},{\"name\":\"长春\"}],[{\"name\":\"广州\"},{\"name\":\"重庆\"}],[{\"name\":\"广州\"},{\"name\":\"长沙\"}],[{\"name\":\"广州\"},{\"name\":\"成都\"}],[{\"name\":\"广州\"},{\"name\":\"常州\"}],[{\"name\":\"广州\"},{\"name\":\"大连\"}],[{\"name\":\"广州\"},{\"name\":\"福州\"}],[{\"name\":\"广州\"},{\"name\":\"海口\"}],[{\"name\":\"广州\"},{\"name\":\"呼和浩特\"}],[{\"name\":\"广州\"},{\"name\":\"合肥\"}],[{\"name\":\"广州\"},{\"name\":\"杭州\"}],[{\"name\":\"广州\"},{\"name\":\"哈尔滨\"}],[{\"name\":\"广州\"},{\"name\":\"舟山\"}],[{\"name\":\"广州\"},{\"name\":\"银川\"}],[{\"name\":\"广州\"},{\"name\":\"南昌\"}],[{\"name\":\"广州\"},{\"name\":\"昆明\"}],[{\"name\":\"广州\"},{\"name\":\"贵阳\"}],[{\"name\":\"广州\"},{\"name\":\"兰州\"}],[{\"name\":\"广州\"},{\"name\":\"拉萨\"}],[{\"name\":\"广州\"},{\"name\":\"连云港\"}],[{\"name\":\"广州\"},{\"name\":\"临沂\"}],[{\"name\":\"广州\"},{\"name\":\"柳州\"}],[{\"name\":\"广州\"},{\"name\":\"宁波\"}],[{\"name\":\"广州\"},{\"name\":\"南京\"}],[{\"name\":\"广州\"},{\"name\":\"南宁\"}],[{\"name\":\"广州\"},{\"name\":\"南通\"}],[{\"name\":\"广州\"},{\"name\":\"北京\"}],[{\"name\":\"广州\"},{\"name\":\"上海\"}],[{\"name\":\"广州\"},{\"name\":\"沈阳\"}],[{\"name\":\"广州\"},{\"name\":\"西安\"}],[{\"name\":\"广州\"},{\"name\":\"石家庄\"}],[{\"name\":\"广州\"},{\"name\":\"汕头\"}],[{\"name\":\"广州\"},{\"name\":\"青岛\"}],[{\"name\":\"广州\"},{\"name\":\"济南\"}],[{\"name\":\"广州\"},{\"name\":\"天津\"}],[{\"name\":\"广州\"},{\"name\":\"太原\"}],[{\"name\":\"广州\"},{\"name\":\"乌鲁木齐\"}],[{\"name\":\"广州\"},{\"name\":\"温州\"}],[{\"name\":\"广州\"},{\"name\":\"武汉\"}],[{\"name\":\"广州\"},{\"name\":\"无锡\"}],[{\"name\":\"广州\"},{\"name\":\"厦门\"}],[{\"name\":\"广州\"},{\"name\":\"西宁\"}],[{\"name\":\"广州\"},{\"name\":\"徐州\"}],[{\"name\":\"广州\"},{\"name\":\"烟台\"}],[{\"name\":\"广州\"},{\"name\":\"盐城\"}]]},\"geoCoord\":{\"上海\":[121.4648,31.2891],\"东莞\":[113.8953,22.901],\"东营\":[118.7073,37.5513],\"中山\":[113.4229,22.478],\"临汾\":[111.4783,36.1615],\"临沂\":[118.3118,35.2936],\"丹东\":[124.541,40.4242],\"丽水\":[119.5642,28.1854],\"乌鲁木齐\":[87.9236,43.5883],\"佛山\":[112.8955,23.1097],\"保定\":[115.0488,39.0948],\"兰州\":[103.5901,36.3043],\"包头\":[110.3467,41.4899],\"北京\":[116.4551,40.2539],\"北海\":[109.314,21.6211],\"南京\":[118.8062,31.9208],\"南宁\":[108.479,23.1152],\"南昌\":[116.0046,28.6633],\"南通\":[121.1023,32.1625],\"厦门\":[118.1689,24.6478],\"台州\":[121.1353,28.6688],\"合肥\":[117.29,32.0581],\"呼和浩特\":[111.4124,40.4901],\"咸阳\":[108.4131,34.8706],\"哈尔滨\":[127.9688,45.368],\"唐山\":[118.4766,39.6826],\"嘉兴\":[120.9155,30.6354],\"大同\":[113.7854,39.8035],\"大连\":[122.2229,39.4409],\"天津\":[117.4219,39.4189],\"太原\":[112.3352,37.9413],\"威海\":[121.9482,37.1393],\"宁波\":[121.5967,29.6466],\"宝鸡\":[107.1826,34.3433],\"宿迁\":[118.5535,33.7775],\"常州\":[119.4543,31.5582],\"广州\":[113.5107,23.2196],\"廊坊\":[116.521,39.0509],\"延安\":[109.1052,36.4252],\"张家口\":[115.1477,40.8527],\"徐州\":[117.5208,34.3268],\"德州\":[116.6858,37.2107],\"惠州\":[114.6204,23.1647],\"成都\":[103.9526,30.7617],\"扬州\":[119.4653,32.8162],\"承德\":[117.5757,41.4075],\"拉萨\":[91.1865,30.1465],\"无锡\":[120.3442,31.5527],\"日照\":[119.2786,35.5023],\"昆明\":[102.9199,25.4663],\"杭州\":[119.5313,29.8773],\"枣庄\":[117.323,34.8926],\"柳州\":[109.3799,24.9774],\"株洲\":[113.5327,27.0319],\"武汉\":[114.3896,30.6628],\"汕头\":[117.1692,23.3405],\"江门\":[112.6318,22.1484],\"沈阳\":[123.1238,42.1216],\"沧州\":[116.8286,38.2104],\"河源\":[114.917,23.9722],\"泉州\":[118.3228,25.1147],\"泰安\":[117.0264,36.0516],\"泰州\":[120.0586,32.5525],\"济南\":[117.1582,36.8701],\"济宁\":[116.8286,35.3375],\"海口\":[110.3893,19.8516],\"淄博\":[118.0371,36.6064],\"淮安\":[118.927,33.4039],\"深圳\":[114.5435,22.5439],\"清远\":[112.9175,24.3292],\"温州\":[120.498,27.8119],\"渭南\":[109.7864,35.0299],\"湖州\":[119.8608,30.7782],\"湘潭\":[112.5439,27.7075],\"滨州\":[117.8174,37.4963],\"潍坊\":[119.0918,36.524],\"烟台\":[120.7397,37.5128],\"玉溪\":[101.9312,23.8898],\"珠海\":[113.7305,22.1155],\"盐城\":[120.2234,33.5577],\"盘锦\":[121.9482,41.0449],\"石家庄\":[114.4995,38.1006],\"福州\":[119.4543,25.9222],\"秦皇岛\":[119.2126,40.0232],\"绍兴\":[120.564,29.7565],\"聊城\":[115.9167,36.4032],\"肇庆\":[112.1265,23.5822],\"舟山\":[122.2559,30.2234],\"苏州\":[120.6519,31.3989],\"莱芜\":[117.6526,36.2714],\"菏泽\":[115.6201,35.2057],\"营口\":[122.4316,40.4297],\"葫芦岛\":[120.1575,40.578],\"衡水\":[115.8838,37.7161],\"衢州\":[118.6853,28.8666],\"西宁\":[101.4038,36.8207],\"西安\":[109.1162,34.2004],\"贵阳\":[106.6992,26.7682],\"连云港\":[119.1248,34.552],\"邢台\":[114.8071,37.2821],\"邯郸\":[114.4775,36.535],\"郑州\":[113.4668,34.6234],\"鄂尔多斯\":[108.9734,39.2487],\"重庆\":[107.7539,30.1904],\"金华\":[120.0037,29.1028],\"铜川\":[109.0393,35.1947],\"银川\":[106.3586,38.1775],\"镇江\":[119.4763,31.9702],\"长春\":[125.8154,44.2584],\"长沙\":[113.0823,28.2568],\"长治\":[112.8625,36.4746],\"阳泉\":[113.4778,38.0951],\"青岛\":[120.4651,36.3373],\"韶关\":[113.7964,24.7028]}},{\"name\":\"北京 Top10\",\"type\":\"map\",\"mapType\":\"china\",\"data\":[],\"markLine\":{\"smooth\":true,\"effect\":{\"show\":true,\"scaleSize\":1,\"period\":30,\"color\":\"#fff\",\"shadowBlur\":10},\"itemStyle\":{\"normal\":{\"borderWidth\":1,\"lineStyle\":{\"type\":\"solid\",\"shadowBlur\":10}}},\"data\":[[{\"name\":\"北京\"},{\"name\":\"上海\",\"value\":95}],[{\"name\":\"北京\"},{\"name\":\"广州\",\"value\":90}],[{\"name\":\"北京\"},{\"name\":\"大连\",\"value\":80}],[{\"name\":\"北京\"},{\"name\":\"南宁\",\"value\":70}],[{\"name\":\"北京\"},{\"name\":\"南昌\",\"value\":60}],[{\"name\":\"北京\"},{\"name\":\"拉萨\",\"value\":50}],[{\"name\":\"北京\"},{\"name\":\"长春\",\"value\":40}],[{\"name\":\"北京\"},{\"name\":\"包头\",\"value\":30}],[{\"name\":\"北京\"},{\"name\":\"重庆\",\"value\":20}],[{\"name\":\"北京\"},{\"name\":\"常州\",\"value\":10}]]},\"markPoint\":{\"symbol\":\"emptyCircle\",\"symbolSize\":\"(function (v){return 10 + v/10})\",\"effect\":{\"show\":true,\"shadowBlur\":0},\"itemStyle\":{\"normal\":{\"label\":{\"show\":false}},\"emphasis\":{\"label\":{\"position\":\"top\"}}},\"data\":[{\"name\":\"上海\",\"value\":95},{\"name\":\"广州\",\"value\":90},{\"name\":\"大连\",\"value\":80},{\"name\":\"南宁\",\"value\":70},{\"name\":\"南昌\",\"value\":60},{\"name\":\"拉萨\",\"value\":50},{\"name\":\"长春\",\"value\":40},{\"name\":\"包头\",\"value\":30},{\"name\":\"重庆\",\"value\":20},{\"name\":\"常州\",\"value\":10}]}},{\"name\":\"上海 Top10\",\"type\":\"map\",\"mapType\":\"china\",\"data\":[],\"markLine\":{\"smooth\":true,\"effect\":{\"show\":true,\"scaleSize\":1,\"period\":30,\"color\":\"#fff\",\"shadowBlur\":10},\"itemStyle\":{\"normal\":{\"borderWidth\":1,\"lineStyle\":{\"type\":\"solid\",\"shadowBlur\":10}}},\"data\":[[{\"name\":\"上海\"},{\"name\":\"包头\",\"value\":95}],[{\"name\":\"上海\"},{\"name\":\"昆明\",\"value\":90}],[{\"name\":\"上海\"},{\"name\":\"广州\",\"value\":80}],[{\"name\":\"上海\"},{\"name\":\"郑州\",\"value\":70}],[{\"name\":\"上海\"},{\"name\":\"长春\",\"value\":60}],[{\"name\":\"上海\"},{\"name\":\"重庆\",\"value\":50}],[{\"name\":\"上海\"},{\"name\":\"长沙\",\"value\":40}],[{\"name\":\"上海\"},{\"name\":\"北京\",\"value\":30}],[{\"name\":\"上海\"},{\"name\":\"丹东\",\"value\":20}],[{\"name\":\"上海\"},{\"name\":\"大连\",\"value\":10}]]},\"markPoint\":{\"symbol\":\"emptyCircle\",\"symbolSize\":\"(function (v){return 10 + v/10})\",\"effect\":{\"show\":true,\"shadowBlur\":0},\"itemStyle\":{\"normal\":{\"label\":{\"show\":false}},\"emphasis\":{\"label\":{\"position\":\"top\"}}},\"data\":[{\"name\":\"包头\",\"value\":95},{\"name\":\"昆明\",\"value\":90},{\"name\":\"广州\",\"value\":80},{\"name\":\"郑州\",\"value\":70},{\"name\":\"长春\",\"value\":60},{\"name\":\"重庆\",\"value\":50},{\"name\":\"长沙\",\"value\":40},{\"name\":\"北京\",\"value\":30},{\"name\":\"丹东\",\"value\":20},{\"name\":\"大连\",\"value\":10}]}},{\"name\":\"广州 Top10\",\"type\":\"map\",\"mapType\":\"china\",\"data\":[],\"markLine\":{\"smooth\":true,\"effect\":{\"show\":true,\"scaleSize\":1,\"period\":30,\"color\":\"#fff\",\"shadowBlur\":10},\"itemStyle\":{\"normal\":{\"borderWidth\":1,\"lineStyle\":{\"type\":\"solid\",\"shadowBlur\":10}}},\"data\":[[{\"name\":\"广州\"},{\"name\":\"福州\",\"value\":95}],[{\"name\":\"广州\"},{\"name\":\"太原\",\"value\":90}],[{\"name\":\"广州\"},{\"name\":\"长春\",\"value\":80}],[{\"name\":\"广州\"},{\"name\":\"重庆\",\"value\":70}],[{\"name\":\"广州\"},{\"name\":\"西安\",\"value\":60}],[{\"name\":\"广州\"},{\"name\":\"成都\",\"value\":50}],[{\"name\":\"广州\"},{\"name\":\"常州\",\"value\":40}],[{\"name\":\"广州\"},{\"name\":\"北京\",\"value\":30}],[{\"name\":\"广州\"},{\"name\":\"北海\",\"value\":20}],[{\"name\":\"广州\"},{\"name\":\"海口\",\"value\":10}]]},\"markPoint\":{\"symbol\":\"emptyCircle\",\"symbolSize\":\"(function (v){return 10 + v/10})\",\"effect\":{\"show\":true,\"shadowBlur\":0},\"itemStyle\":{\"normal\":{\"label\":{\"show\":false}},\"emphasis\":{\"label\":{\"position\":\"top\"}}},\"data\":[{\"name\":\"福州\",\"value\":95},{\"name\":\"太原\",\"value\":90},{\"name\":\"长春\",\"value\":80},{\"name\":\"重庆\",\"value\":70},{\"name\":\"西安\",\"value\":60},{\"name\":\"成都\",\"value\":50},{\"name\":\"常州\",\"value\":40},{\"name\":\"北京\",\"value\":30},{\"name\":\"北海\",\"value\":20},{\"name\":\"海口\",\"value\":10}]}}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  地图标线3
 */
- (void)showMapMarkLine3Demo {
    NSString *json = @"{\"backgroundColor\":\"#1b1b1b\",\"color\":[\"gold\",\"aqua\",\"lime\"],\"title\":{\"text\":\"模拟迁徙\",\"subtext\":\"数据纯属虚构\",\"x\":\"center\",\"textStyle\":{\"color\":\"#fff\"}},\"tooltip\":{\"trigger\":\"item\",\"formatter\":\"{b}\"},\"legend\":{\"orient\":\"vertical\",\"x\":\"left\",\"data\":[\"北京\",\"上海\",\"广州\"],\"selectedMode\":\"single\",\"selected\":{\"上海\":false,\"广州\":false},\"textStyle\":{\"color\":\"#fff\"}},\"toolbox\":{\"show\":true,\"orient\":\"vertical\",\"x\":\"right\",\"y\":\"center\",\"feature\":{\"mark\":{\"show\":true},\"dataView\":{\"show\":true,\"readOnly\":false},\"restore\":{\"show\":true},\"saveAsImage\":{\"show\":true}}},\"dataRange\":{\"min\":0,\"max\":100,\"calculable\":true,\"color\":[\"#ff3333\",\"orange\",\"yellow\",\"lime\",\"aqua\"],\"textStyle\":{\"color\":\"#fff\"}},\"animationDurationUpdate\":2000,\"series\":[{\"name\":\"北京\",\"type\":\"map\",\"roam\":true,\"hoverable\":false,\"mapType\":\"china\",\"itemStyle\":{\"normal\":{\"borderColor\":\"rgba(100,149,237,1)\",\"borderWidth\":0.5,\"areaStyle\":{\"color\":\"#1b1b1b\"}}},\"data\":[],\"geoCoord\":{\"上海\":[121.4648,31.2891],\"广州\":[113.5107,23.2196],\"北京\":[116.4551,40.2539]},\"markLine\":{\"smooth\":true,\"effect\":{\"show\":true,\"scaleSize\":1,\"period\":30,\"color\":\"#fff\",\"shadowBlur\":10},\"itemStyle\":{\"normal\":{\"borderWidth\":1,\"label\":{\"show\":false},\"lineStyle\":{\"type\":\"solid\",\"shadowBlur\":10}}},\"data\":[[{\"name\":\"北京\",\"smoothness\":0.2},{\"name\":\"广州\",\"value\":95}],[{\"name\":\"北京\",\"smoothness\":0.3},{\"name\":\"广州\",\"value\":90}],[{\"name\":\"北京\",\"smoothness\":0.4},{\"name\":\"广州\",\"value\":80}],[{\"name\":\"北京\",\"smoothness\":0.5},{\"name\":\"广州\",\"value\":70}],[{\"name\":\"北京\",\"smoothness\":0.6},{\"name\":\"广州\",\"value\":60}],[{\"name\":\"广州\",\"smoothness\":0.2},{\"name\":\"北京\",\"value\":50}],[{\"name\":\"广州\",\"smoothness\":0.3},{\"name\":\"北京\",\"value\":40}],[{\"name\":\"广州\",\"smoothness\":0.4},{\"name\":\"北京\",\"value\":30}],[{\"name\":\"广州\",\"smoothness\":0.5},{\"name\":\"北京\",\"value\":20}],[{\"name\":\"广州\",\"smoothness\":0.6},{\"name\":\"北京\",\"value\":10}]]}},{\"name\":\"上海\",\"type\":\"map\",\"mapType\":\"china\",\"data\":[],\"markLine\":{\"smooth\":true,\"effect\":{\"show\":true,\"scaleSize\":1,\"period\":30,\"color\":\"#fff\",\"shadowBlur\":10},\"itemStyle\":{\"normal\":{\"borderWidth\":1,\"label\":{\"show\":false},\"lineStyle\":{\"type\":\"solid\",\"shadowBlur\":10}}},\"data\":[[{\"name\":\"北京\",\"smoothness\":0.2},{\"name\":\"上海\",\"value\":95}],[{\"name\":\"北京\",\"smoothness\":0.3},{\"name\":\"上海\",\"value\":90}],[{\"name\":\"北京\",\"smoothness\":0.4},{\"name\":\"上海\",\"value\":80}],[{\"name\":\"北京\",\"smoothness\":0.5},{\"name\":\"上海\",\"value\":70}],[{\"name\":\"北京\",\"smoothness\":0.6},{\"name\":\"上海\",\"value\":60}],[{\"name\":\"上海\",\"smoothness\":0.2},{\"name\":\"北京\",\"value\":50}],[{\"name\":\"上海\",\"smoothness\":0.3},{\"name\":\"北京\",\"value\":40}],[{\"name\":\"上海\",\"smoothness\":0.4},{\"name\":\"北京\",\"value\":30}],[{\"name\":\"上海\",\"smoothness\":0.5},{\"name\":\"北京\",\"value\":20}],[{\"name\":\"上海\",\"smoothness\":0.6},{\"name\":\"北京\",\"value\":10}]]}},{\"name\":\"广州\",\"type\":\"map\",\"mapType\":\"china\",\"data\":[],\"markLine\":{\"smooth\":true,\"effect\":{\"show\":true,\"scaleSize\":1,\"period\":30,\"color\":\"#fff\",\"shadowBlur\":10},\"itemStyle\":{\"normal\":{\"borderWidth\":1,\"label\":{\"show\":false},\"lineStyle\":{\"type\":\"solid\",\"shadowBlur\":10}}},\"data\":[[{\"name\":\"上海\",\"smoothness\":0.2},{\"name\":\"广州\",\"value\":95}],[{\"name\":\"上海\",\"smoothness\":0.3},{\"name\":\"广州\",\"value\":90}],[{\"name\":\"上海\",\"smoothness\":0.4},{\"name\":\"广州\",\"value\":80}],[{\"name\":\"上海\",\"smoothness\":0.5},{\"name\":\"广州\",\"value\":70}],[{\"name\":\"上海\",\"smoothness\":0.6},{\"name\":\"广州\",\"value\":60}],[{\"name\":\"广州\",\"smoothness\":0.2},{\"name\":\"上海\",\"value\":50}],[{\"name\":\"广州\",\"smoothness\":0.3},{\"name\":\"上海\",\"value\":40}],[{\"name\":\"广州\",\"smoothness\":0.4},{\"name\":\"上海\",\"value\":30}],[{\"name\":\"广州\",\"smoothness\":0.5},{\"name\":\"上海\",\"value\":20}],[{\"name\":\"广州\",\"smoothness\":0.6},{\"name\":\"上海\",\"value\":10}]]}}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  值域控件
 */
- (void)showDataRangeDemo {
    NSString *json = @"{\"title\":{\"text\":\"订单量\",\"subtext\":\"纯属虚构\",\"x\":\"center\"},\"tooltip\":{\"trigger\":\"item\"},\"legend\":{\"orient\":\"vertical\",\"x\":\"left\",\"data\":[\"订单量\"]},\"dataRange\":{\"x\":\"left\",\"y\":\"bottom\",\"splitList\":[{\"start\":1500},{\"start\":900,\"end\":1500},{\"start\":310,\"end\":1000},{\"start\":200,\"end\":300},{\"start\":10,\"end\":200,\"label\":\"10 到 200（自定义label）\"},{\"start\":5,\"end\":5,\"label\":\"5（自定义特殊颜色）\",\"color\":\"black\"},{\"end\":10}],\"color\":[\"#E0022B\",\"#E09107\",\"#A3E00B\"]},\"toolbox\":{\"show\":true,\"orient\":\"vertical\",\"x\":\"right\",\"y\":\"center\",\"feature\":{\"mark\":{\"show\":true},\"dataView\":{\"show\":true,\"readOnly\":false},\"restore\":{\"show\":true},\"saveAsImage\":{\"show\":true}}},\"roamController\":{\"show\":true,\"width\":40,\"height\":60,\"x\":\"right\",\"mapTypeControl\":{\"china\":true}},\"series\":[{\"name\":\"订单量\",\"type\":\"map\",\"mapType\":\"china\",\"roam\":false,\"itemStyle\":{\"normal\":{\"label\":{\"show\":true,\"textStyle\":{\"color\":\"rgb(249, 249, 249)\"}}},\"emphasis\":{\"label\":{\"show\":true}}},\"data\":[{\"name\":\"北京\",\"value\":841},{\"name\":\"天津\",\"value\":281},{\"name\":\"上海\",\"value\":987},{\"name\":\"重庆\",\"value\":1725},{\"name\":\"河北\",\"value\":0},{\"name\":\"河南\",\"value\":196},{\"name\":\"云南\",\"value\":5},{\"name\":\"辽宁\",\"value\":305},{\"name\":\"黑龙江\",\"value\":108},{\"name\":\"湖南\",\"value\":200},{\"name\":\"安徽\",\"value\":1542},{\"name\":\"山东\",\"value\":1292},{\"name\":\"新疆\",\"value\":1004},{\"name\":\"江苏\",\"value\":785},{\"name\":\"浙江\",\"value\":355},{\"name\":\"江西\",\"value\":1490},{\"name\":\"湖北\",\"value\":1308},{\"name\":\"广西\",\"value\":390},{\"name\":\"甘肃\",\"value\":42},{\"name\":\"山西\",\"value\":1554},{\"name\":\"内蒙古\",\"value\":1367},{\"name\":\"陕西\",\"value\":1076},{\"name\":\"吉林\",\"value\":1650},{\"name\":\"福建\",\"value\":396},{\"name\":\"贵州\",\"value\":442},{\"name\":\"广东\",\"value\":371},{\"name\":\"青海\",\"value\":124},{\"name\":\"西藏\",\"value\":927},{\"name\":\"四川\",\"value\":1280},{\"name\":\"宁夏\",\"value\":234},{\"name\":\"海南\",\"value\":495},{\"name\":\"台湾\",\"value\":105},{\"name\":\"香港\",\"value\":1564},{\"name\":\"澳门\",\"value\":1796}]}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

/**
 *  地图
 */
- (void)showMapDemo {
    NSString *json = @"{\"series\":[{\"name\":\"Map\",\"type\":\"map\",\"mapLocation\":{\"x\":\"left\",\"y\":\"top\",\"height\":500},\"selectedMode\":\"multiple\",\"itemStyle\":{\"normal\":{\"borderWidth\":2,\"borderColor\":\"lightgreen\",\"color\":\"orange\",\"label\":{\"show\":false}},\"emphasis\":{\"borderWidth\":2,\"borderColor\":\"#fff\",\"color\":\"#32cd32\",\"label\":{\"show\":true,\"textStyle\":{\"color\":\"#fff\"}}}},\"data\":[{\"name\":\"广东\",\"value\":831,\"itemStyle\":{\"normal\":{\"color\":\"#32cd32\",\"label\":{\"show\":true,\"textStyle\":{\"color\":\"#fff\",\"fontSize\":15}}},\"emphasis\":{\"borderWidth\":5,\"borderColor\":\"yellow\",\"color\":\"#cd5c5c\",\"label\":{\"show\":false,\"textStyle\":{\"color\":\"blue\"}}}}}],\"markPoint\":{\"itemStyle\":{\"normal\":{\"color\":\"skyblue\"}},\"data\":[{\"name\":\"天津\",\"value\":350},{\"name\":\"上海\",\"value\":103},{\"name\":\"echarts\",\"symbolSize\":21,\"x\":150,\"y\":50}]},\"geoCoord\":{\"上海\":[121.4648,31.2891],\"天津\":[117.4219,39.4189]}}]}";
    NSData *jsonData = [json dataUsingEncoding:NSUTF8StringEncoding];
    NSDictionary *jsonDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingAllowFragments error:nil];
    PYOption *option = [RMMapper objectWithClass:[PYOption class] fromDictionary:jsonDic];
    [_yEchartView setOption:option];
}

#pragma mark - Delegate
#pragma mark - TableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return menuNames.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"menuCell"];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"menuCell"];
        cell.selectionStyle = UITableViewCellSelectionStyleBlue;
    }
    cell.textLabel.text = menuNames[indexPath.row];
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    switch (indexPath.row) {
        case 0:
            [self showStandardMap1Demo];
            break;
        case 1:
            [self showStandardMap2Demo];
            break;
        case 2:
            //[self showStandardMap3Demo];
            break;
        case 3:
            [self showStandardMap4Demo];
            break;
        case 4:
            [self showStandardMap5Demo];
            break;
        case 5:
            [self showMultiMapDemo];
            break;
        case 12:
            [self showMapMarkLineDemo];
            break;
        case 13:
            [self showMapMarkPointDemo];
            break;
        case 15:
            [self showMapMarkLine2Demo];
            break;
        case 16:
            [self showMapMarkLine3Demo];
            break;
        case 25:
            [self showMapDemo];
            break;
        case 26:
            [self showDataRangeDemo];
            break;
        default:
            break;
    }
    [_yEchartView loadEcharts];
}

@end
